Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by
lb6817 -7
5 years ago

Like maybe make them jump or kick them, and even pop up a prompt purchase of the gamepass

Closed as Not Constructive by User#24403 and User#5423

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
starmaq 1290 Moderation Voter
5 years ago

Asking for scripts isnt allowed.... but i guess this will help with gamepasses https://developer.roblox.com/articles/Game-Passes-One-Time-Purchases

Ad
Log in to vote
0
Answered by 5 years ago

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.

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 starmaq 1290 — 5y