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

How do i make a brick spawning script?

Asked by 8 years ago

Like how do i make a script where it will just be spawning bricks in a certain area?

0
To have it spawn on a part, set it's position to: ..........Vector3.new(game.Workspace.SpawnerPart.Position)+Vector3.new(0,game.Workspace.SpawnerPart.Size.Y,0) theCJarmy7 1293 — 8y

1 answer

Log in to vote
1
Answered by
theCJarmy7 1293 Moderation Voter
8 years ago

This is quite broad, but I'll answer anyway.

You can make parts with Instance.new("Part")

part = Instance.new("Part",game.Workspace) -- the second parameter is the parent
part.Anchored = true --then just change it's properties

To make it spawn in a random area, use math.random

part = Instance.new("Part",game.Workspace)
part.Position = Vector3.new(math.random(1,20),1,math.random(1,20))

Leave a comment if you need anything clarified.

0
How do i make it spawn on a part like if insert a part into the workspace how can i make the script spawn parts from that part (Little confusing lmfao) TheEmoWu 35 — 8y
Ad

Answer this question