local player = game.Players.LocalPlayer local gui = Instance.new("ScreenGui") gui.Parent = player:WaitForChild("PlayerGui") gui.Name = "AnimSpeedGUI" local UserInputService = game:GetService("UserInputService") -- Function to set animation speed local function SetAnimSpeed(speed) local character = player.Character if character and character:FindFirstChild("Humanoid") then local humanoid = character.Humanoid for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do track:AdjustSpeed(speed) end print("Animation speed set to "..speed) end end -- Function to stop all animations local function StopAnimations() local character = player.Character if character and character:FindFirstChild("Humanoid") then local humanoid = character.Humanoid for _, track in pairs(humanoid:GetPlayingAnimationTracks()) do track:Stop() end print("All animations stopped.") end end -- Function to make a GUI element draggable local function makeDraggable(frame) local dragging = false local dragInput, mousePos, framePos frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true mousePos = input.Position framePos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) frame.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - mousePos frame.Position = UDim2.new(framePos.X.Scale, framePos.X.Offset + delta.X, framePos.Y.Scale, framePos.Y.Offset + delta.Y) end end) end -- Function to create a button (right side) local function createButton(name, posY, callback) local button = Instance.new("TextButton") button.Size = UDim2.new(0, 120, 0, 35) button.Position = UDim2.new(1, -130, 0, posY) -- right side, 10px from edge button.AnchorPoint = Vector2.new(0,0) button.Text = name button.BackgroundColor3 = Color3.fromRGB(50,50,50) button.TextColor3 = Color3.fromRGB(255,255,255) button.Parent = gui button.MouseButton1Click:Connect(callback) makeDraggable(button) end -- Create draggable buttons createButton("AnimSpeed 3.3", 50, function() SetAnimSpeed(3.3) end) createButton("AnimSpeed 0.3", 95, function() SetAnimSpeed(0.3) end) createButton("AnimSpeed -2.6", 140, function() SetAnimSpeed(-2.6) end) createButton("AnimSpeed 0", 185, function() SetAnimSpeed(0) end) createButton("Stop Animations", 230, StopAnimations)