local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UIS = game:GetService("UserInputService")
local player = Players.LocalPlayer
local parent
pcall(function()
parent = game:GetService("CoreGui")
end)
if not parent then
parent = player:WaitForChild("PlayerGui")
end
local autoGift = false
local giftSpeed = 1
local guiVisible = true
local usingSlider = false
local gui = Instance.new("ScreenGui", parent)
gui.Name = "PhoenixHub"
gui.ResetOnSpawn = false
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 320, 0, 220)
frame.Position = UDim2.new(0.5, -160, 0.5, -110)
frame.BackgroundColor3 = Color3.fromRGB(25,25,25)
frame.BorderSizePixel = 0
frame.Active = true
Instance.new("UICorner", frame).CornerRadius = UDim.new(0,14)
local dragging, dragStart, startPos
frame.InputBegan:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton1
or i.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = i.Position
startPos = frame.Position
end
end)
frame.InputEnded:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton1
or i.UserInputType == Enum.UserInputType.Touch then
dragging = false
end
end)
UIS.InputChanged:Connect(function(i)
if dragging and not usingSlider and (
i.UserInputType == Enum.UserInputType.MouseMovement
or i.UserInputType == Enum.UserInputType.Touch
) then
local delta = i.Position - dragStart
frame.Position = UDim2.new(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
end
end)
local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1,0,0,40)
title.Text = "🔥 Phoenix Hub"
title.Font = Enum.Font.GothamBold
title.TextSize = 22
title.TextColor3 = Color3.fromRGB(255,140,0)
title.BackgroundTransparency = 1
local autoBtn = Instance.new("TextButton", frame)
autoBtn.Size = UDim2.new(0,260,0,45)
autoBtn.Position = UDim2.new(0.5,-130,0,60)
autoBtn.Text = "🎁 Auto Open Gift: OFF"
autoBtn.Font = Enum.Font.GothamBold
autoBtn.TextSize = 16
autoBtn.TextColor3 = Color3.new(1,1,1)
autoBtn.BackgroundColor3 = Color3.fromRGB(60,60,60)
autoBtn.BorderSizePixel = 0
Instance.new("UICorner", autoBtn)
autoBtn.MouseButton1Click:Connect(function()
autoGift = not autoGift
autoBtn.Text = autoGift and "🎁 Auto Open Gift: ON" or "🎁 Auto Open Gift: OFF"
end)
local sliderFrame = Instance.new("Frame", frame)
sliderFrame.Size = UDim2.new(0,260,0,40)
sliderFrame.Position = UDim2.new(0.5,-130,0,120)
sliderFrame.BackgroundTransparency = 1
local speedLabel = Instance.new("TextLabel", sliderFrame)
speedLabel.Size = UDim2.new(1,0,0,18)
speedLabel.Text = "⚡ Speed: 1.0s"
speedLabel.Font = Enum.Font.Gotham
speedLabel.TextSize = 14
speedLabel.TextColor3 = Color3.new(1,1,1)
speedLabel.BackgroundTransparency = 1
local bar = Instance.new("Frame", sliderFrame)
bar.Size = UDim2.new(1,0,0,8)
bar.Position = UDim2.new(0,0,1,-10)
bar.BackgroundColor3 = Color3.fromRGB(60,60,60)
bar.BorderSizePixel = 0
Instance.new("UICorner", bar)
local fill = Instance.new("Frame", bar)
fill.Size = UDim2.new(0.5,0,1,0)
fill.BackgroundColor3 = Color3.fromRGB(255,140,0)
fill.BorderSizePixel = 0
Instance.new("UICorner", fill)
local draggingSlider = false
bar.InputBegan:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton1
or i.UserInputType == Enum.UserInputType.Touch then
draggingSlider = true
usingSlider = true
end
end)
bar.InputEnded:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton1
or i.UserInputType == Enum.UserInputType.Touch then
draggingSlider = false
usingSlider = false
end
end)
UIS.InputChanged:Connect(function(i)
if draggingSlider and (
i.UserInputType == Enum.UserInputType.MouseMovement
or i.UserInputType == Enum.UserInputType.Touch
) then
local x = math.clamp(
(i.Position.X - bar.AbsolutePosition.X) / bar.AbsoluteSize.X,
0, 1
)
fill.Size = UDim2.new(x,0,1,0)
giftSpeed = math.floor((2 - x * 1.9) * 10) / 10
if giftSpeed < 0.1 then giftSpeed = 0.1 end
speedLabel.Text = "⚡ Speed: "..giftSpeed.."s"
end
end)
task.spawn(function()
while true do
if autoGift then
pcall(function()
ReplicatedStorage
:WaitForChild("RandomRarity")
:WaitForChild("Common")
:FireServer(Players:WaitForChild("Charlotte_Flash55"))
end)
end
task.wait(giftSpeed)
end
end)
Comments
No comments yet
Be the first to share your thoughts!