Instance.new("Part")
It did not spawn anything
Instance.new("Part")
It did not spawn anything
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
6 comments
thx
If this helped you please mark the answer as correct.
idk how to do that
There is a check mark under the 0, click it
lol
Don't use the second argument of Instance.new, it is a lot slower than parenting it after.