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

Why won't this car script work?

Asked by 10 years ago

I tried to make it so if a user has a gamepass, it clone's the gui and change's the parent to the player, it prompt's the user to purchase the gamepass, even if they have it. Can someone tell me what I did wrong?

01gamepass = 174856301
02Check = {}
03 
04 
05 
06wait(0.1)
07Blacklist = {}
08GroupID = 0
09seat = script.Parent
10cur = nil
11script.Parent.ChildAdded:connect(function(it)
12        if it:IsA("Weld") then
13        tempcur = it.Part1.Parent
14        if cur ~= tempcur and cur ~= nil then tempcur.Humanoid.Sit = false return end
15        if cur == tempcur then print("same guy!")return end
View all 52 lines...
0
Can you explain your code? This doesn't seem to make any sense. What is the purpose of the different variable? BlueTaslem 18071 — 10y
0
To be honest, I don't know. spacek531 made it, I just tried to edit it and make it work with a gamepass. InfinitivePixelsJr 542 — 10y

Answer this question