Basically I have a part called Cam. It has a working script that makes the player spectate an area in view of a brick. The part im failing at is that once you hit a text button within a frame within a gui called Team Change, you are supposed to go back to your normal camera view, but instead, the camera view does change at all. Something is not right with this script.. (THE CAMERA PART IS CALLED CAM)
local Player=game.Players.LocalPlayer
local Char=Player.Character or Player.CharacterAdded:Wait()
local camera=workspace.CurrentCamera
wait(0.1)
camera.CameraType=Enum.CameraType.Scriptable
camera.CFrame=workspace.Cam.CFrame
