The goal is to prevent a character from leaving a car they are put into. My idea is to prevent the player from jumping. Is this the best method? if not what is? My Scripts: Script A
local noJump = script.NoJump:Clone()
script.NoJump:Destroy()
function CharacterSpawned(char)
local noJ = noJump:Clone()
noJ.Parent = char
Delay(0.2, function()
noJ.Disabled = false
end)
end
function PlayerEntered(player)
player.CharacterAdded:connect(CharacterSpawned)
end
for _,v in pairs(game.Players:GetPlayers()) do PlayerEntered(v) end
game.Players.PlayerAdded:connect(PlayerEntered)
Script B(Inside A, Local Script)
local h = script.Parent:WaitForChild("Humanoid")
h.Changed:connect(function()
h.Jump = false
end)
THANKS!

2 comments
He doesn't wanna freeze them. Also if he wants them to stay in car, doesn't that mean he wants them to control the car?
Ok nvm. Can you please upvote? i wouldn't have made this answer if the stupid system didn't restrict you. I started off with -5 points!