Has a error in it which I can't figure out for the life of me [ I'm not very good with scripts] thanks

function onButton1Down()

local target=workspace.ViewBlock local camera=workspace.Camera camera.CameraSubject=target local angle=5

while wait() do camera.CoordinateFrame=CFrame.new(target.Position) * CFrame.Angles(0,angle,0) * CFrame.new(0,0,-1)

end script.Parent.MouseButton1Down:connect(onButton1Down)

3 comments

2

You need another end after your last end. One for the function and one for the while loop.

0

^ For future reference put your code in a lua block.

0

Thanks guys, can't beleive i didnt think of that, brain fartt