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

Script error with camera script 'expected end got eof on line 1?

Asked by 7 years ago

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)

2
You need another end after your last end. One for the function and one for the while loop. Azarth 3141 — 7y
0
^ For future reference put your code in a lua block. blazar04 281 — 7y
0
Thanks guys, can't beleive i didnt think of that, brain fartt FUTUREJ4RHEAD 0 — 7y

Answer this question