You need to put the ScreenGui into StarterGui and put the ImageButton or TextButton into the ScreenGui. Add a LocalScript into the TextButton or ImageButton.
Camera = workspace.CurrentCamera
script.Parent.MouseButton1Click:connect(function()
Camera.CFrame = CFrame.new(0,5,0)
end)
I personally are not sure what you're asking, but I think it might be this (or something related).
This script resets the camera if something has happened to it and the game is not displaying properly.
function buttondown() game.Workspace.CurrentCamera:remove() wait(.1) game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera.CameraType = "Custom" end script.Parent.MouseButton1Down:connect(buttondown)
I have this hooked up to a cam fix button which looks something like this in the hierarchy.
ScreenGui-- | Frame-- | CamFix-- | CamFixScript
Which makes it fire when the button is clicked.
I honestly am not sure what the question is asking, but I hope this helped in some way.