Not being able to go of Motorcycle (Solved)

Hello, I’m trying to make it so you can’t jump off of a motorcycle whatsoever, but I can’t figure out how to, is it a setting in the VehicleSeat itself? Please Help

image

Hi.

I don’t really use seats in stuff I do, however you can modify/add a script linked to the seat (such as a weld or something) that basically sets the players JumpPower or JumpHeight to 0, this prevents them from being able to jump, thus unable to get off the motorcycle.

Basically, like this:

script.Parent:GetPropertyChangedSignal("Occupant"):Connect(function()
	local Occupant = script.Parent.Occupant
	
    if Occupant then
	   Occupant.JumpHeight = 0
    end
end)

Rough script, excuse any slight errors

This assumes the script is parented to the seat, and that you use JumpHeight, if you use JumpPower, just modify it to JumpPower in the script.

Yooo thank you, it works! I tried making scripts with weld and stuff and I couldn’t find a way. But thank you

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.