script.Parent.Touched:connect(function(hit) local h = hit.Parent:FindFirstChild('Humanoid') if h then h.JumpPower = 0 end end)
That is the code I currently have got in a brick big enough for my area. I have also had to put one as an outline around the outside to let them jump again but this was temperamental.
Is it possible to make this all happen in just the 1 script, if so how?
Fixed with:
script.Parent.Touched:connect(function(hit) local h = hit.Parent:FindFirstChild('Humanoid') if h then h.JumpPower = 0 end end) script.Parent.TouchEnded:connect(function(hit) local h = hit.Parent:FindFirstChild('Humanoid') if h then h.JumpPower = 50 end end)