So I made this bounce pad in my game and when I tested it in studio it worked perfectly. But when I played the game the bounce pad didn't work. Any ideas on how to fix this?
The script i'm using:
script.Parent.Touched:Connect(function(Hit)
if Hit.Parent:FindFirstChild("Humanoid") then
local H = Hit.Parent.Humanoid
H.JumpPower = 150
H.Jump = true
wait(1)
H.JumpPower = 50
H.Jump = false
end
end)

2 comments
Localscript or serverscript?
serverscript