Advertisement
Navarone19_CH

Map System

Jul 23rd, 2020
1,226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local char = player.Character
  3. local cam = game.Workspace.CurrentCamera
  4.  
  5. script.Parent.MouseButton1Click:Connect(function()
  6. if cam.CameraType == Enum.CameraType.Custom then
  7. repeat wait()
  8. cam.CameraType = Enum.CameraType.Scriptable
  9. until cam.CameraType == Enum.CameraType.Scriptable
  10. cam.CFrame = game.Workspace.Cam.CFrame
  11. cam.FieldOfView = 40
  12. local gui = script.Parent.Parent.BillboardGui:Clone()
  13. gui.Parent = char.Head
  14. gui.TextLabel.Visible = true
  15. else
  16. char.Head.BillboardGui:Destroy()
  17. cam.CameraType = Enum.CameraType.Custom
  18. cam.FieldOfView = 70
  19. end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement