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

How do I disable the occupant's jump power?

Asked by 4 years ago

I'm trying to make a seat so if you sit down it disables your jump power. I assume it would look something like this but it didn't work.

humanoid = script.Parent.Occupant

script.Parent.Touched:Connect(function()
    humanoid.JumpPower = 0
end)

I also don't know whether it would be a local script or just a regular script. I also don't think it should be a touched event. If anyone could give some insight on this I'd appreciate it.

1 answer

Log in to vote
0
Answered by
Lakodex 711 Moderation Voter
4 years ago
Edited 4 years ago

Now your making script here makes me mad. Please use this before I go insane. MAKE IT A SERVERSCRIPT PLEASE!

script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        hit.Parent.Humanoid.JumpPower = 0
    end
end)
Ad

Answer this question