Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Humanoid = script.Parent:FindFirstChild("Humanoid")
- local UserInputService = game:GetService("UserInputService")
- local Key = Enum.KeyCode.Space
- local Holding = false
- UserInputService.InputBegan:Connect(function(Input)
- if Input.KeyCode == Key then
- Holding = true
- while Holding == true do
- wait()
- Humanoid:ChangeState(Enum.HumanoidStateType.Seated)
- wait(0.0001)
- Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
- end
- end
- end)
- UserInputService.InputEnded:Connect(function(Input)
- if Input.KeyCode == Key then
- Holding = false
- end
- end)
- -- Ubicast
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement