|
| 05 Jul 2017 08:34 PM |
2 questions here.
1: Why do these parts sometimes spawn invisible?
function SpamParts() local RandomPart = Instance.new("Part") local Materials = Enum.Material:GetEnumItems() RandomPart.Color = Color3.new(math.random(0/255, 255/255), math.random(0/255, 255/255), math.random(0/255, 255/255)) RandomPart.Parent = game.Workspace RandomPart.Position = Vector3.new(script.Parent.Position.X, script.Parent.Position.Y + 5, script.Parent.Position.Z) RandomPart.Reflectance = math.random(0.01, 1) for i = 1,#Materials do math.random() RandomPart.Material = Materials[math.random(1,#Materials)] end end script.Parent.Parent.Activated:Connect(SpamParts)
2. How do I make it so that when you hold down the mouse button it continues to fire? |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 05 Jul 2017 08:36 PM |
RandomPart.BrickColor = Color3.fromRGB( math.random(0,255),math.random(0,255),math.random(0,255) )
R$130 |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2017 08:39 PM |
| There's still invisible parts, even though I don't say anything about transparency... |
|
|
| Report Abuse |
|
|
| |
|