I made a part that clones a local script into the player on touch since a local script is needed for camera manipulations. This is the code inside the local script(I am using the camera's focus):
local cam = workspace.CurrentCamera
function lookOverThere()
cam.Focus=CFrame.new(game.Workspace.camManipulations.cameraPos.Position)
end
game.Workspace.camManipulations.cameraChange.Touched:connect(lookOverThere)
After correcting a bunch of errors to the point where no more are being outputted, the local script still does not work.
In closing I have three questions that I hope get answered:
- Is there any way to ensure that local scripts do not have errors and will work.
- How can this local script inside the PlayerGui be corrected and improved to work.
- Is there any way to possibly tween the camera to give it more of a realistic look other than instantaneously changing the camera to a different angle.
Thank you in advanced
