I am working on a script that mimicks the sine pattern(from trig), but the loop doesnt work?
local brick = script.Parent
local Time = tick()
local Runservice = game:GetService("RunService")
local randomInt = 20
function makeRandom()
local currenttime = tick()
local yOffset = math.sin(currenttime * math.pi*2) * 20
brick.Size = Vector3.new(10, yOffset, 10)
end
while wait(0.05) do do
makeRandom()
end

1 comment
you added 2 do's at line 14 :p