local text1 = "Player Perspective?"
local text2 = "Camera Perspective?"
local button = script.Parent.Perspective
local function OnClick()
-- PlayerPerspective --
if button.Text == text1 then
local Camera = game.Workspace.CurrentCamera
local plr = game.Players.LocalPlayer
Camera.CameraType = "Follow"
Camera.CFrame = plr.Character.Head.CFrame
button.Text = text2
end
-- CameraPerspective --
if button.Text == text2 then
local Camera = game.Workspace.CurrentCamera
local plr = game.Players.LocalPlayer
Camera.CameraType = "Scriptable"
Camera.CFrame = game.Workspace.CamPart.CFrame
button.Text = text1
end
end
button.MouseButton1Click:Connect(OnClick) -- Make sure not to type OnClick()! Pass the function, don't run it!
I'm not getting errors at all, and this is a local script inside of a screen GUI that is inside of starter GUI. Please help! (btw, a dude helped me already. If you see this then tell me your username and I'll give credit.)
Thanks,
Narwhal

2 comments
let me go see if it works, thanks for your contribution!
Unfortunatly, It didn't work. Sorry! Also, there was no errors