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

How do i create objects using scripts?

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

✓ Accepted answer

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!

2 comments

0

thanks you it worked for me.

0

Oh Ok But you couldn't answer my question? I see.

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