|
| 25 Nov 2015 10:22 AM |
wait(2) for i = 1, 100 do wait() F = script.Frame:clone() F.Parent = script.Parent T = script.Tween:clone() T.Parent = F T.Disabled = false F.Size = UDim2.new(math.random(0.05,2),0,0.2,0) F.Position = UDim2.new(0,0,math.random(0.05,1),0) print(F.Position) wait(.1) end
Output: 11:21:18.898 - Auto-Saving... Initialized Settings 11:21:20.555 - Unable to load plugin icon. Image may have an invalid or unknown format. {0, 0}, {1, 0} {0, 0}, {1, 0} {0, 0}, {1, 0} {0, 0}, {1, 0} {0, 0}, {1, 0} {0, 0}, {0, 0} {0, 0}, {0, 0} {0, 0}, {0, 0} {0, 0}, {0, 0} --[[It's always either 1 or 0, does math.random just not like decimals or am I doing something wrong?]]-- |
|
|
| Report Abuse |
|
|
| 25 Nov 2015 10:24 AM |
It only works with integers.
F.Position = UDim2.new(0,0,math.random(5,1000)/1000,0) |
|
|
| Report Abuse |
|
| |