Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make a Tool, which by clicking, the character jumps?

Asked by 3 years ago
Edited 3 years ago

Hello everyone, I'm trying to make a tool, that when you click, you jump, plus I can not, first I did this test with a block, so... I tried this:

function onTouched()
    local Jump = 50
    local h = Handle.Parent:findFirstChild("Humanoid")
    h.Jump = true
script.Parent.Touched:Connect(onTouched)

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

You would have to do this for the tool

function Jumpy()
local h = script.Parent.Parent:FindFirstChild("Humanoid")
h:Jump()
end
script.Parent.Activated:Connect(Jumpy())
Ad

Answer this question