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

Why Do These Three Lines Break The Script?

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

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

4 comments

0

Try - local a = tool.Portal:Clone()

0

Okay. I just tried same thing but I replaced the script1 with scripta. There is no change however, the bullet no longer appears.

0

then it has to be something with the rest of the script. can you show me it?

0

Do you want in on here? I can post as another answer

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