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

When i tried to do a instance.new script It did not spawn anything. what should i do?

Instance.new("Part")

It did not spawn anything

2 answers

Definite the Parent of this Instance. In this case the Parent is Workspace

Instance.new("Part", workspace)

You can also make a Variable

local Part = Instance.new("Part")
Part.Parent = workspace
Part.Position = Vector3.new(0, 40, 0)

Hope this help, to more questions put below in commentaries.

Instance.new(string className) will create a new Instance of type className. The parent of that new instance is nil.

There is another constructor of instance that lets you set the parent Instance.new("Part", workspace)

6 comments

0

thx

0

If this helped you please mark the answer as correct.

0

idk how to do that

0

There is a check mark under the 0, click it

0

lol

0

Don't use the second argument of Instance.new, it is a lot slower than parenting it after.

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