Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local char = player.Character
- local cam = game.Workspace.CurrentCamera
- script.Parent.MouseButton1Click:Connect(function()
- if cam.CameraType == Enum.CameraType.Custom then
- repeat wait()
- cam.CameraType = Enum.CameraType.Scriptable
- until cam.CameraType == Enum.CameraType.Scriptable
- cam.CFrame = game.Workspace.Cam.CFrame
- cam.FieldOfView = 40
- local gui = script.Parent.Parent.BillboardGui:Clone()
- gui.Parent = char.Head
- gui.TextLabel.Visible = true
- else
- char.Head.BillboardGui:Destroy()
- cam.CameraType = Enum.CameraType.Custom
- cam.FieldOfView = 70
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement