
KeylessUniversal

-- FLOATMENU V6.2 ⚙ Beta - Rainbow Theme
-- Made By R-XTION
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local CoreGui = game:GetService("CoreGui")
local oldGui = CoreGui:FindFirstChild("FloatMenuV62")
if oldGui then oldGui:Destroy() end
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local root = character:WaitForChild("HumanoidRootPart")
local gui = Instance.new("ScreenGui")
gui.Name = "FloatMenuV62"
gui.ResetOnSpawn = false
gui.Parent = CoreGui
local destroyed = false
local floating = false
local savedY
local platform
local followConnection
local countdownConnection
local dotThread
local autoFloat = false
local autoSaveThread = nil
local DAY = 24 * 60 * 60
local remaining = DAY
local dayExpired = false
local defaultWalkSpeed = humanoid.WalkSpeed
local defaultJumpPower = humanoid.JumpPower
-- MENU
local frame = Instance.new("Frame")
frame.Size = UDim2.fromOffset(270, 300)
frame.Position = UDim2.new(0.5, -135, 0.5, -150)
frame.BackgroundColor3 = Color3.fromRGB(25,25,25)
frame.Active = true
frame.Draggable = true
frame.Parent = gui
Instance.new("UICorner",frame).CornerRadius = UDim.new(0,12)
local stroke = Instance.new("UIStroke",frame)
stroke.Thickness = 2
-- TITLE
local title = Instance.new("TextLabel",frame)
title.Size = UDim2.new(1,-90,0,40)
title.Position = UDim2.fromOffset(10,5)
title.BackgroundTransparency = 1
title.Text = "FLOATMENU V6.2 ⚙ Beta"
title.Font = Enum.Font.GothamBold
title.TextSize = 18
title.TextXAlignment = Enum.TextXAlignment.Left
-- CLOSE
local hideButton = Instance.new("TextButton",frame)
hideButton.Size = UDim2.fromOffset(30,30)
hideButton.Position = UDim2.new(1,-38,0,8)
hideButton.BackgroundColor3 = Color3.fromRGB(200,0,0)
hideButton.Text = "×"
hideButton.TextColor3 = Color3.new(1,1,1)
hideButton.Font = Enum.Font.GothamBold
hideButton.TextSize = 19
Instance.new("UICorner",hideButton).CornerRadius = UDim.new(0,7)
-- HÀM TẠO NÚT
local function createButton(text, y)
local b = Instance.new("TextButton",frame)
b.Size = UDim2.new(.9,0,0,34)
b.Position = UDim2.new(.05,0,y,0)
b.BackgroundColor3 = Color3.fromRGB(60,60,60)
b.TextColor3 = Color3.new(1,1,1)
b.Text = text
b.Font = Enum.Font.GothamSemibold
b.TextSize = 16
Instance.new("UICorner",b).CornerRadius = UDim.new(0,8)
return b
end
-- CÁC NÚT
local saveButton = createButton("Lưu Tọa Độ", .15)
local floatButton = createButton("Bật Float", .31)
local autoFloatButton = createButton("Auto Float (TEST)", .47)
local offButton = createButton("Tắt", .63)
offButton.BackgroundColor3 = Color3.fromRGB(200,0,0)
-- TIME
local timeLabel = Instance.new("TextLabel",frame)
timeLabel.Size = UDim2.new(.9,0,0,30)
timeLabel.Position = UDim2.new(.05,0,.78,0)
timeLabel.BackgroundTransparency = 1
timeLabel.Font = Enum.Font.GothamBold
timeLabel.TextSize = 14
timeLabel.TextColor3 = Color3.fromRGB(255,215,0)
timeLabel.Text = "Thời gian: 24h 00m 00s"
-- COPYRIGHT
local copyright = Instance.new("TextLabel",frame)
copyright.Size = UDim2.new(1,-20,0,20)
copyright.Position = UDim2.new(0,10,1,-24)
copyright.BackgroundTransparency = 1
copyright.Text = "© Made By R-XTION"
copyright.Font = Enum.Font.GothamBold
copyright.TextSize = 13
-- FLAG
local flagButton = Instance.new("TextButton",frame)
flagButton.Size = UDim2.fromOffset(40,32)
flagButton.Position = UDim2.new(1,-82,1,-39)
flagButton.BackgroundTransparency = 1
flagButton.Text = "🇻🇳"
flagButton.TextSize = 25
-- DESCRIPTION
local infoFrame = Instance.new("Frame",gui)
infoFrame.Size = UDim2.fromOffset(460,170)
infoFrame.Position = UDim2.new(.5,-230,.5,-85)
infoFrame.BackgroundColor3 = Color3.fromRGB(18,18,18)
infoFrame.Visible = false
infoFrame.ZIndex = 20
Instance.new("UICorner",infoFrame).CornerRadius = UDim.new(0,12)
local infoStroke = Instance.new("UIStroke",infoFrame)
infoStroke.Thickness = 2
infoStroke.Color = Color3.fromRGB(220,0,0)
local infoClose = Instance.new("TextButton",infoFrame)
infoClose.Size = UDim2.fromOffset(30,30)
infoClose.Position = UDim2.new(1,-38,0,8)
infoClose.BackgroundColor3 = Color3.fromRGB(200,0,0)
infoClose.Text = "×"
infoClose.TextColor3 = Color3.new(1,1,1)
infoClose.Font = Enum.Font.GothamBold
infoClose.TextSize = 19
infoClose.ZIndex = 22
Instance.new("UICorner",infoClose).CornerRadius = UDim.new(0,7)
local infoText = Instance.new("TextLabel",infoFrame)
infoText.Size = UDim2.new(1,-30,1,-50)
infoText.Position = UDim2.fromOffset(15,42)
infoText.BackgroundTransparency = 1
infoText.Text = [[
Bản Script này KHÔNG PHẢI AI LÀM!
Chính chủ 100% là TỰ LÀM.
Bản quyền của XTION!
Không phải của ai đó tên wry.v.v nào đó 🤣.
]]
infoText.TextColor3 = Color3.new(1,1,1)
infoText.Font = Enum.Font.GothamSemibold
infoText.TextSize = 16
infoText.TextWrapped = true
infoText.TextYAlignment = Enum.TextYAlignment.Top
infoText.ZIndex = 21
-- SHOW BUTTON
local showButton = Instance.new("TextButton",gui)
showButton.Size = UDim2.fromOffset(45,45)
showButton.Position = UDim2.new(1,-58,0,10)
showButton.BackgroundColor3 = Color3.fromRGB(25,25,25)
showButton.Text = "🇻🇳"
showButton.TextSize = 27
showButton.Visible = false
Instance.new("UICorner",showButton).CornerRadius = UDim.new(0,10)
-- ===== RAINBOW COLOR LOOP =====
local hue = 0
task.spawn(function()
while not destroyed and gui.Parent do
hue = (hue + 0.005) % 1
local rainbowColor = Color3.fromHSV(hue, 1, 1)
-- Cập nhật màu cho title, stroke, copyright
title.TextColor3 = rainbowColor
stroke.Color = rainbowColor
copyright.TextColor3 = rainbowColor
-- Cập nhật màu nền cho frame gradient nhẹ (tùy chọn)
-- frame.BackgroundColor3 = Color3.fromHSV(hue, 0.3, 0.15)
task.wait(0.03)
end
end)
-- DESCRIPTION EVENTS
flagButton.Activated:Connect(function()
infoFrame.Visible = true
end)
infoClose.Activated:Connect(function()
infoFrame.Visible = false
end)
-- HIDE / SHOW
hideButton.Activated:Connect(function()
frame.Visible = false
infoFrame.Visible = false
showButton.Visible = true
end)
showButton.Activated:Connect(function()
frame.Visible = true
showButton.Visible = false
end)
-- TIME UPDATE
local function updateTime()
if dayExpired then
timeLabel.Text = "Đã hết thời gian! Chờ ngày hôm sau!"
timeLabel.TextColor3 = Color3.fromRGB(255,50,50)
return
end
local h = math.floor(remaining/3600)
local m = math.floor((remaining%3600)/60)
local s = math.floor(remaining%60)
timeLabel.Text = string.format("Thời gian: %02dh %02dm %02ds",h,m,s)
end
-- ===== PLATFORM =====
local function destroyPlatform()
if platform then
platform:Destroy()
platform = nil
end
end
local function createPlatform()
if not savedY or dayExpired then return end
platform = Instance.new("Part")
platform.Name = "FloatPlatform"
platform.Anchored = true
platform.CanCollide = true
platform.Material = Enum.Material.ForceField
platform.Transparency = .4
platform.Size = Vector3.new(50,1,50)
platform.Position = Vector3.new(
root.Position.X,
savedY-3.5,
root.Position.Z
)
platform.Parent = workspace
end
-- ===== FOLLOW =====
local function stopFollow()
if followConnection then
followConnection:Disconnect()
followConnection = nil
end
end
local function startFollow()
stopFollow()
followConnection = RunService.RenderStepped:Connect(function()
if floating and platform and platform.Parent then
platform.Position = Vector3.new(
root.Position.X,
savedY-3.5,
root.Position.Z
)
end
end)
end
-- ===== DOTS =====
local function stopDots()
if dotThread then
task.cancel(dotThread)
dotThread = nil
end
end
local function startDots()
stopDots()
dotThread = task.spawn(function()
local dots = 0
while floating and not destroyed do
floatButton.Text = "Đang Float"..string.rep(".",dots)
dots = (dots+1)%4
task.wait(.5)
end
end)
end
-- ===== STOP FLOAT =====
local function stopFloat()
floating = false
stopDots()
stopFollow()
destroyPlatform()
if humanoid then
humanoid.WalkSpeed = defaultWalkSpeed
humanoid.JumpPower = defaultJumpPower
end
floatButton.Text = "Bật Float"
floatButton.BackgroundColor3 = Color3.fromRGB(60,60,60)
end
-- ===== START FLOAT MANUAL =====
local function startFloatManual()
if dayExpired then return end
if not savedY then
floatButton.Text = "Chưa lưu!"
floatButton.BackgroundColor3 = Color3.fromRGB(180,0,0)
task.delay(1, function()
if not destroyed then
floatButton.Text = "Bật Float"
floatButton.BackgroundColor3 = Color3.fromRGB(60,60,60)
end
end)
return
end
if autoFloat then
toggleAutoFloat()
end
floating = true
floatButton.BackgroundColor3 = Color3.fromRGB(0,180,0)
createPlatform()
startFollow()
startDots()
end
-- ===== AUTO FLOAT TOGGLE =====
local function toggleAutoFloat()
if destroyed or dayExpired then return end
if autoFloat then
autoFloat = false
autoFloatButton.BackgroundColor3 = Color3.fromRGB(60,60,60)
if autoSaveThread then
task.cancel(autoSaveThread)
autoSaveThread = nil
end
if floating then
stopFloat()
end
else
if floating then
stopFloat()
end
autoFloat = true
autoFloatButton.BackgroundColor3 = Color3.fromRGB(0,180,0)
if autoSaveThread then task.cancel(autoSaveThread) end
autoSaveThread = task.spawn(function()
while autoFloat and not destroyed do
if root and root.Position then
savedY = root.Position.Y
end
task.wait(0.1)
end
end)
floating = true
floatButton.BackgroundColor3 = Color3.fromRGB(0,180,0)
createPlatform()
startFollow()
startDots()
end
end
-- ===== SAVE BUTTON =====
saveButton.Activated:Connect(function()
savedY = root.Position.Y
saveButton.Text = "Đã lưu!"
task.delay(1,function()
if not destroyed then
saveButton.Text = "Lưu Tọa Độ"
end
end)
if floating and platform then
TweenService:Create(
platform,
TweenInfo.new(.25),
{
Position = Vector3.new(
platform.Position.X,
savedY-3.5,
platform.Position.Z
)
}
):Play()
end
end)
-- ===== FLOAT BUTTON =====
floatButton.Activated:Connect(function()
if destroyed or dayExpired then return end
if floating and not autoFloat then
stopFloat()
else
startFloatManual()
end
end)
-- ===== AUTO FLOAT BUTTON =====
autoFloatButton.Activated:Connect(toggleAutoFloat)
-- ===== OFF BUTTON =====
offButton.Activated:Connect(function()
destroyed = true
stopDots()
stopFollow()
destroyPlatform()
if countdownConnection then countdownConnection:Disconnect() end
if autoSaveThread then task.cancel(autoSaveThread); autoSaveThread = nil end
if humanoid then
humanoid.WalkSpeed = defaultWalkSpeed
humanoid.JumpPower = defaultJumpPower
end
gui:Destroy()
end)
-- ===== COUNTDOWN =====
countdownConnection = RunService.Heartbeat:Connect(function(dt)
if destroyed then return end
if not dayExpired then
remaining -= dt
if remaining <= 0 then
remaining = 0
dayExpired = true
if floating then stopFloat() end
end
updateTime()
end
end)
-- ===== RESPAWN =====
player.CharacterAdded:Connect(function(newCharacter)
if destroyed then return end
character = newCharacter
humanoid = newCharacter:WaitForChild("Humanoid")
root = newCharacter:WaitForChild("HumanoidRootPart")
defaultWalkSpeed = humanoid.WalkSpeed
defaultJumpPower = humanoid.JumpPower
floating = false
autoFloat = false
if autoSaveThread then task.cancel(autoSaveThread); autoSaveThread = nil end
stopDots()
stopFollow()
destroyPlatform()
floatButton.Text = "Bật Float"
floatButton.BackgroundColor3 = Color3.fromRGB(60,60,60)
autoFloatButton.BackgroundColor3 = Color3.fromRGB(60,60,60)
end)
updateTime()No comments yet for this script.



