I want if locked is true that the player jumps? But it isn't working... It's a serverScript
script.Parent.Parent.DriveSeat.ChildAdded:Connect(function(child)
if script.Parent.Value == false then
return
elseif script.Parent.Value == true then
if child:IsA("Weld") then
if child.Part1.Name == "HumanoidRootPart" then
local player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
player.Character.Humanoid.Jump = true
end
end
end
end)
First take a look at the error in the title and the error is at line 9...

2 comments
Use player.Character not workspace
Still not working...