I think the new camera update has somehow messed up Buildismaran.
#6
It seems that the CameraScript keeps spawning and respawning and breaking.

CameraScript.Line 9: attempted index of non-table

[lua]
function shakeCamera()
i = 1
while i > 0 do
local vec = Vec2D(math.random(1, 3), math.random(1, 3)):mul(Vec2D(i, i))
local rotation = math.random(-4, 4) * i
if math.random() > 0.5 then
vec = vec:mul(Vec2D(-1, -1))
end
game.CurrentCamera.Offset = vec --Line 9
game.CurrentCamera.RotationOffset = rotation
i = i - 0.25
sleep(0.02)
end
game.CurrentCamera.Offset = Vec2D(0, 0)
game.CurrentCamera.RotationOffset = 0
end
link(script.Parent.Collided, function(part, velocity) if math.abs(velocity.y) > 20 then shakeCamera() end end)

[/lua]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)