|
| 18 Oct 2015 07:53 PM |
while true do wait(5) local part = Instance.new("Part", workspace) part.BrickColor = BrickColor.new("Lily white") part.Size = Vector3.new(math.random(104.4, 4.8, 63.6,71.8, 4.6, 63.6)) part.CFrame = CFrame.new(-1027.8, 100.9, 13.2)
end
I get this error: "17:52:13.417 - Workspace.Script:6: wrong number of arguments"
Help please?
You sat in my subforum!! NOW I AM GOING TO EAT YOU!!! |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 07:56 PM |
You are only setting X in the Vector3 part.Size = Vector3.new(math.random(104.4, 4.8),math.random(63.6,71.8),math.random(4.6, 63.6)) |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 08:04 PM |
@Air
Even after fixing that, a new error occurs
NEW SCRIPT
while true do wait(5) local part = Instance.new("Part", workspace) part.BrickColor = BrickColor.new("Lily white") part.Size = Vector3.new(math.random(104.4, 4.8),math.random(63.6,71.8),math.random(4.6, 63.6)) part.CFrame = CFrame.new(-1027.8, 100.9, 13.2)
end
NEW ERROR
"18:03:39.024 - Workspace.Script:6: bad argument #2 to 'random' (interval is empty)"
You sat in my subforum!! NOW I AM GOING TO EAT YOU!!! |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 08:06 PM |
| That happens when you order the arguments in math.random() wrong. The one on the left HAS to be smaller then the one on the right. 4.8 has to be on the left and 104.4 has to be on the right, for the first one. Do that to the other two too. |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2015 08:22 PM |
@Wonder @Air
Thanks :)
You sat in my subforum!! NOW I AM GOING TO EAT YOU!!! |
|
|
| Report Abuse |
|
|