button.ClickDetector.MouseClick:Connect(function(hit)
if hit == game.Players.LocalPlayer then
local camera = workspace.CurrentCamera
camera.CameraType = "Scriptable"
camera.CFrame = CFrame.new(x,y,z)
end
end)
put this in a local script, and you will have to edit it
|