
Key RequiredUniversal

-- Services
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local GuiService = game:GetService("GuiService")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
-- Prevent duplicate UI instances
local existingGui = PlayerGui:FindFirstChild("YokaiControlPanel")
if existingGui then
existingGui:Destroy()
end
-- Main ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "YokaiControlPanel"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = PlayerGui
-- ========================================================
-- 1. INTRO FADE-IN SCREEN
-- ========================================================
local IntroFrame = Instance.new("Frame")
IntroFrame.Size = UDim2.new(1, 0, 1, 0)
IntroFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
IntroFrame.BackgroundTransparency = 0
IntroFrame.ZIndex = 10
IntroFrame.Parent = ScreenGui
local IntroLabel = Instance.new("TextLabel")
IntroLabel.Size = UDim2.new(0.8, 0, 0.2, 0)
IntroLabel.Position = UDim2.new(0.1, 0, 0.4, 0)
IntroLabel.BackgroundTransparency = 1
IntroLabel.Text = "SUBSCRIBE TO @YOKAISENPAII"
IntroLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
IntroLabel.TextScaled = true
IntroLabel.Font = Enum.Font.SourceSansBold
IntroLabel.ZIndex = 11
IntroLabel.Parent = IntroFrame
-- Fade-Out Animation
task.spawn(function()
task.wait(2)
local fadeInfo = TweenInfo.new(1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local fadeFrame = TweenService:Create(IntroFrame, fadeInfo, {BackgroundTransparency = 1})
local fadeText = TweenService:Create(IntroLabel, fadeInfo, {TextTransparency = 1})
fadeFrame:Play()
fadeText:Play()
fadeFrame.Completed:Connect(function()
IntroFrame:Destroy()
end)
end)
-- ========================================================
-- 2. TOGGLE BUTTON ("Y" IN A BLACK CIRCLE)
-- ========================================================
local ToggleButton = Instance.new("TextButton")
ToggleButton.Name = "ToggleButton"
ToggleButton.Size = UDim2.new(0, 50, 0, 50)
ToggleButton.Position = UDim2.new(0.05, 0, 0.2, 0)
ToggleButton.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
ToggleButton.Text = "Y"
ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ToggleButton.TextSize = 24
ToggleButton.Font = Enum.Font.SourceSansBold
ToggleButton.Active = true
ToggleButton.Draggable = true -- Allows moving the toggle button
ToggleButton.Parent = ScreenGui
-- Round the toggle button into a circle
local ToggleUICorner = Instance.new("UICorner")
ToggleUICorner.CornerRadius = UDim.new(1, 0)
ToggleUICorner.Parent = ToggleButton
-- Toggle RGB Stroke Ring
local ToggleStroke = Instance.new("UIStroke")
ToggleStroke.Thickness = 2
ToggleStroke.Color = Color3.fromRGB(255, 255, 255)
ToggleStroke.Parent = ToggleButton
-- ========================================================
-- 3. MAIN PANEL
-- ========================================================
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 350, 0, 220)
MainFrame.Position = UDim2.new(0.5, -175, 0.5, -110)
MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true -- Allows moving the main panel
MainFrame.Visible = true
MainFrame.Parent = ScreenGui
local MainUICorner = Instance.new("UICorner")
MainUICorner.CornerRadius = UDim.new(0, 8)
MainUICorner.Parent = MainFrame
-- Title Bar Text
local TitleBar = Instance.new("TextLabel")
TitleBar.Size = UDim2.new(1, 0, 0, 40)
TitleBar.BackgroundTransparency = 1
TitleBar.Text = "Yokai Control Panel"
TitleBar.TextColor3 = Color3.fromRGB(255, 255, 255)
TitleBar.TextSize = 18
TitleBar.Font = Enum.Font.SourceSansBold
TitleBar.Parent = MainFrame
-- Target Input Box
local TargetBox = Instance.new("TextBox")
TargetBox.Size = UDim2.new(0.85, 0, 0, 40)
TargetBox.Position = UDim2.new(0.075, 0, 0.28, 0)
TargetBox.PlaceholderText = "Enter Target Username..."
TargetBox.Text = ""
TargetBox.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
TargetBox.TextColor3 = Color3.fromRGB(255, 255, 255)
TargetBox.Font = Enum.Font.SourceSans
TargetBox.TextSize = 14
TargetBox.Parent = MainFrame
local BoxUICorner = Instance.new("UICorner")
BoxUICorner.CornerRadius = UDim.new(0, 6)
BoxUICorner.Parent = TargetBox
-- Open Profile Button
local ProfileButton = Instance.new("TextButton")
ProfileButton.Size = UDim2.new(0.85, 0, 0, 40)
ProfileButton.Position = UDim2.new(0.075, 0, 0.55, 0)
ProfileButton.Text = "Open Profile"
ProfileButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
ProfileButton.TextColor3 = Color3.fromRGB(255, 255, 255)
ProfileButton.Font = Enum.Font.SourceSansBold
ProfileButton.TextSize = 14
ProfileButton.Parent = MainFrame
local BtnUICorner = Instance.new("UICorner")
BtnUICorner.CornerRadius = UDim.new(0, 6)
BtnUICorner.Parent = ProfileButton
-- Dynamic Button Label Update based on Input
TargetBox:GetPropertyChangedSignal("Text"):Connect(function()
local input = TargetBox.Text
if #input > 0 then
ProfileButton.Text = "Open Profile (" .. input .. ")"
else
ProfileButton.Text = "Open Profile"
end
end)
-- ========================================================
-- 4. INTERACTION LOGIC
-- ========================================================
-- On/Off Toggle Action
ToggleButton.MouseButton1Click:Connect(function()
MainFrame.Visible = not MainFrame.Visible
end)
-- Inspect Profile Event
ProfileButton.MouseButton1Click:Connect(function()
local targetUsername = TargetBox.Text
if targetUsername == "" then
targetUsername = "YokaiSenpaii1" -- Default fallback target
end
task.spawn(function()
local success, userId = pcall(function()
return Players:GetUserIdFromNameAsync(targetUsername)
end)
if success and userId then
GuiService:InspectPlayerFromUserId(userId)
else
warn("Unable to fetch user ID for: " .. tostring(targetUsername))
end
end)
end)
-- RGB Cycle Animation Loop
local hue = 0
RunService.RenderStepped:Connect(function(deltaTime)
hue = (hue + deltaTime * 0.2) % 1
local rainbowColor = Color3.fromHSV(hue, 0.8, 1)
TitleBar.TextColor3 = rainbowColor
ToggleStroke.Color = rainbowColor
end)No comments yet for this script.



