Disconnected event because of exception, why?
I am new to scripting Lua on ROBLOX. I've been trying to code a Scriptable Camera but it keeps saying, in the Output window, "Disconnected event because of exception. I am testing in 'Solo Play' and Server Play. Why does it keep saying this phrase? Here's the script:
03 | run = game:GetService( "RunService" ) |
05 | c.CameraType = "Scriptable" |
06 | Pos = Vector 3. new( 0 , 50 , - 50 ) |
07 | Targ = game.Workspace.Dead 1. Torso.Position |
10 | for tehloop = 1 , 100 do |
15 | Pos = Vector 3. new( 0 , 50 , Zaxis) |
16 | c.CoordinateFrame = CFrame.new(Pos.Targ) |
25 | c.CameraType = "Custom" |
28 | GUIPBr.Touched:connect(onTouch) |
If anyone can help me with this, that would be very helpful. Thank you!