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

How do i create objects using scripts?

Asked by 9 years ago

I want to make my script make a brick but i dont know how. Can you please tell me how i have tried to use create.new("brick") but it didnt work how do i make it create them. thanks in advance !!!!! ;)

testing - this is cool :)

1 answer

Log in to vote
5
Answered by 9 years ago

To create a part create.new() doesn't exist, you're looking for Instance.new(), also "brick" is not an available instance, you need "Part". If you want to change properties later, you will need to define it. Another thing you will need to do is set the parent of the part to Workspace so it can be seen. Here's the script:

part = Instance.new("Part",game.Workspace) -- Create a new part in workspace
--part.Size = Vector3.new(5,5,5) -- Change the size
--you can add more in here

If this worked please like and accept it as the answer!

0
thanks you it worked for me. idontcare2004 5 — 9y
0
Oh Ok But you couldn't answer my question? I see. Vezious 310 — 9y
Ad

Answer this question