|
|
Line 1: |
Line 1: |
| <pre>
| |
| repeats = 25
| |
| radius = 10
| |
|
| |
|
|
| |
| bin = script.Parent
| |
| script.Parent=game.Workspace
| |
|
| |
| model = Instance.new("Model")
| |
|
| |
| m = Instance.new("Model")
| |
| m.Name = bin.Name
| |
|
| |
| function fire(i,booms)
| |
|
| |
| local centerpoint = bin
| |
|
| |
| local a = i * ((3.14156 * 2) / booms)
| |
|
| |
| local y = 0
| |
| local x = radius * math.cos(a)
| |
| local z = radius * math.sin(a)
| |
|
| |
| local launch = Vector3.new(x, y, z)
| |
| local New = bin:clone()
| |
| New.CFrame = CFrame.new(centerpoint.Position + launch, centerpoint.Position + launch * 2)
| |
|
| |
| New.Parent = m
| |
| end
| |
|
| |
| for i=1,repeats do
| |
| fire(i,repeats)
| |
| end
| |
|
| |
| bin.Parent = model
| |
| m.Parent = model
| |
|
| |
| model.Parent = game.Workspace
| |
|
| |
| script.Parent=bin
| |
| script.Disabled = true
| |
| </pre>
| |