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.
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)