Hello! I'm trying to make the player jump when it seats on a vehicle. The script is giving the following error:
Workspace.City.Model.Model.Drive.Script:3: attempt to index a nil value
The Script:
while wait() do
if script.Parent.Occupant ~= nil then
if game.Players:GetPlayerFromCharacter(script.Parent.Occupant):GetRankInGroup(3894675) == 0 then
script.Parent.Occupant.Humanoid.Jump = true
end
end
end
Thanks for your help!

5 comments
upvote from me
Thanks =D
line4 gotta be Occupant.Jump not Humanoid.Jump lol
Ops...
Solved