|
| 09 Dec 2013 09:46 PM |
print("Block Generator.") local XPos = math.random(0,49) local YPos = math.random(0,17) local ZPos = math.random(-49,14) local Rotation = math.random(0,180) local FindingOfBrickAmount = script:findFirstChild("Value")
while true do local RandomBrick = Instance.new("Part") RandomBrick.Name = "RandomBrick" RandomBrick.Position = Vector3.new(XPos,YPos,ZPos) RandomBrick.CFrame = CFrame.new * CFrame.Angles(Rotation,Rotation,Rotation) RandomBrick.BrickColor = BrickColor.Random() FindingOfBrickAmount.Value = FindingOfBrickAmount.Value + 1 wait(0.5) end
OUTPUT: 21:43:04.314 - Workspace.Script:12: bad argument #1 to '?' (CFrame expected, got function) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 09 Dec 2013 09:56 PM |
print("Block Generator.") local XPos = math.random(0,49) local YPos = math.random(0,17) local ZPos = math.random(-49,14) local Rotation = math.random(0,180) local FindingOfBrickAmount = script:findFirstChild("Value")
while true do local RandomBrick = Instance.new("Part", game.Workspace) RandomBrick.Name = "RandomBrick" RandomBrick.Position = Vector3.new(XPos,YPos,ZPos) RandomBrick.CFrame = CFrame.new(0,0,0) * CFrame.Angles(math.rad(Rotation),math.rad(Rotation),math.rad(Rotation)) RandomBrick.BrickColor = BrickColor.Random() FindingOfBrickAmount.Value = FindingOfBrickAmount.Value + 1 wait(0.5) end |
|
|
| Report Abuse |
|
|