Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Can someone help with this script?

Asked by 11 years ago

it won't work correctly i don't know what the bug is ~~~~~~~~~~~~~~~~~ local colors = { BrickColor.new("White"), BrickColor.new("Bright red"), BrickColor.new("Black"), BrickColor.new("Bright blue"), } for i = 1, 1200 do local p = Instance.new("Part",workspace) p.Anchored = true p.Size = Vector3.new( math.random(10, 160), math.random(4,60), math.random(10, 160) ) p.CFrame = CFrame.new( math.random(-1700, 1700), math.random(710, 2500), math.random(-1700, 1700) ) p.CanCollide = false p.TopSurface = 0 p.BottomSurface = 0 p.BrickColor = colors[math.random(1,#colors)]

01if i%20 == 0 then
02 
03    local currentpos = Vector3.new( math.random(-1700, 1700), math.random(710, 2500), math.random(-1700, 1700) )
04    local frompos = currentpos
05    local targetpos = Vector3.new( math.random(-1700, 1700), math.random(710, 2500), math.random(-1700, 1700) )
06 
07    local rotation = 0
08 
09    local speed = math.random()*1.5+0.1
10    local rotspeed = ( math.random() - 0.5 ) * 2 * 2.5
11    local factor = 0
12 
13    p.CFrame = CFrame.new(currentpos)
14 
15    local dist = (frompos - targetpos).magnitude
View all 36 lines...

end ****~~~~~~~~~~~~~~~~~ [](http://)

1
Fix the formatting please. Trioxide 79 — 11y

1 answer

Log in to vote
1
Answered by 11 years ago

This may not be right but when you put end at 29 i think it stops the script there

Ad

Answer this question