I am trying to code a onTouch Jump pad so when you touch the part your character would jump..
I can code little things but this is not working for some strange reason.
NVM I FIXED IT..
script.Parent.Touched:connect(function(h)
if h:FindFirstChild("Humanoid").Jump == false then
wait(1)
h:FindFirstChild("Humanoid").Jump = true
elseif h:FindFirstChild("Humanoid").Jump == true then
wait(0.5)
h:FindFirstChild("Humaniod").Jump = false
end
end)
FIXED CODING...
Power = 50
PowerUP = 70
script.Parent.Touched:connect(function(h)
if h.Parent:FindFirstChild("Humanoid") ~= nil then
h.Parent:FindFirstChild("Humanoid").JumpPower = PowerUP
h.Parent:FindFirstChild("Humanoid").Jump = true
wait(.1)
h.Parent:FindFirstChild("Humanoid").JumpPower = Power
h.Parent:FindFirstChild("Humanoid").Jump = false
end
end)

1 comment
You don't have to set Jump to false on line 10.