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

Why Do These Three Lines Break The Script?

Asked by
Hibobb 40
9 years ago

There are no error messages. I tested gun before adding these and it worked. Afterwards it does not. All of the values, etc exist and are defined. It is in a localscript and Portal is a regular script.

    local script1 = tool.Portal:Clone()
    script1.Parent = bullet
    script1.Disabled = false

1 answer

Log in to vote
0
Answered by 9 years ago

Because there can't be a number in a variable. Try local a or something

0
Try - local a = tool.Portal:Clone() SprocketSoldier 0 — 9y
0
Okay. I just tried same thing but I replaced the script1 with scripta. There is no change however, the bullet no longer appears. Hibobb 40 — 9y
0
then it has to be something with the rest of the script. can you show me it? SprocketSoldier 0 — 9y
0
Do you want in on here? I can post as another answer Hibobb 40 — 9y
Ad

Answer this question