So i have this simple script which is supposed to set the jump power to 0 when the player is in a vehicle seat so that you cant jump out of it but for some reason it does not work.Whats the issue and how do i fix it?
the script
repeat wait() until game.Players.LocalPlayer
local player = script.Parent.Parent
if player.Character.Humanoid.Seated == true then
player.Character.JumpPower.value = 0
end

4 comments
Don't do .value
Just do player.Character.JumpPower = 0
@Spjureeedd no it's not player.Character.JumpPower = 0
Oh yeah lol hehe