
301 Views
34 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
.
-- LocalScript to create a green-themed XMAS GUI with toggleable Speed, Fly, BETA, top-right X close, and animated OPEN button
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- Variables for features
local defaultSpeed = 16
local speedEnabled = false
local flyEnabled = false
local humanoid
local flyBodyVelocity
local flyBodyAngularVelocity
local flyHeartbeat
local mainFrame
local speedButton
local flyButton
local openButton
-- Function to handle character respawn
local function onCharacterAdded(char)
humanoid = char:WaitForChild("Humanoid")
humanoid.WalkSpeed = defaultSpeed
speedEnabled = false
disableFly() -- Reset fly on respawn
if speedButton then updateSpeedButtonColor() end
if flyButton then updateFlyButtonColor() end
end
player.CharacterAdded:Connect(onCharacterAdded)
if player.Character then
onCharacterAdded(player.Character)
end
-- Speed toggle
local function toggleSpeed()
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!





