Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to I make a gamepass car and car only drivable by selected players?

2 answers

I only how to make the only driveable by selected players.

put a script in the seat, and put this in the script:

NAME = ("PLAYERNAME") -- Player Name

function onTouched(hit)

if hit.Parent.ClassName == "Model" and hit.Parent.Name == NAME then

else

if hit.Parent.ClassName == "Model" then

hit.Parent.Humanoid.Jump = true

end

end

end

script.Parent.Touched:connect(onTouched)

I am currently making it so it kicks the person and when I do make it ill answer this again.

Tell me if you want it to be multiple people.

1 comment

0

i just answer your question and told you to fix your syntax xd,and if you wannaadd scripts, click that little lua icon at the top, and right within the given space

This discussion is preserved as it was. New answers, comments, and votes are closed.