o ee aa o e e aafdggggggggg gafgafgafg
Alright so how the hell am I suppose to turn that into lua?
Nevermind I made something similar.
local length = 50
local lastcloud = nil
for i=1,length do
local cloud = script.Cloud:Clone()
cloud.Parent = script.Parent
local x,y = 0.5,0.5
local a = math.random(0,180)
local d = math.random(10,40)
if lastcloud then
x = (lastcloud.AbsolutePosition.X+math.cos(math.rad(a))*d)/workspace.CurrentCamera.ViewportSize.X
y = (lastcloud.AbsolutePosition.Y+math.sin(math.rad(a))*d)/workspace.CurrentCamera.ViewportSize.Y
end
cloud.Position = UDim2.new(x,0,y,0)
lastcloud = cloud
end
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.