JIT
this code. -- LocalScript local player = game.Players:FindFirstChild("AlphonsoG
this code. -- LocalScript local player = game.Players:FindFirstChild("AlphonsoGames") if not player then return end local character = player.Character or player.CharacterAdded:Wait() local humanoidRootPart = character:WaitForChild("HumanoidRootPart") local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://1700316475" sound.Volume = 2 sound.Pitch = 0.9 sound.Parent = humanoidRootPart local lastPressedTime = 0 local cooldownDuration = 2 local function onKeyPressed(input, gameProcessedEvent) if gameProcessedEvent then return end if character and character:FindFirstChild("Humanoid") then local humanoid = character.Humanoid local currentTime = tick() if currentTime - lastPressedTime < cooldownDuration then return end if input.KeyCode == Enum.KeyCode.R then if not humanoid.PlatformStand then humanoid.PlatformStand = true local currentCFrame = humanoidRootPart.CFrame local rotationCFrame = CFrame.Angles(math.rad(-90), 0, 0) local newCFrame = currentCFrame * rotationCFrame humanoidRootPart.CFrame = newCFrame sound:Play() lastPressedTime = currentTime end elseif input.KeyCode == Enum.KeyCode.E then if humanoid.PlatformStand then humanoid.PlatformStand = false end end end end game:GetService("UserInputService").InputBegan:Connect(onKeyPressed) make it that instead of a local script. it's a server script using gui buttons instead.
Updated files
v1
you dont need to use a localscript to press buttons.