Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I disable the occupant's jump power?

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

✓ Accepted answer

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)

This discussion is preserved as it was. New answers, comments, and votes are closed.