MisterH_t

MainMenu with Camera

Dec 25th, 2020 (edited)
2,276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local Character = plr.Character or plr.CharacterAdded:Wait()
  3. local Camera = workspace.CurrentCamera
  4.  
  5. local play = script.Parent.Play
  6.  
  7. repeat wait()
  8. Camera.CameraType = Enum.CameraType.Scriptable
  9. until Camera.CameraType == Enum.CameraType.Scriptable
  10. Camera.CFrame = workspace.CameraPart.CFrame
  11.  
  12. play.MouseButton1Click:Connect(function()
  13. Camera.CameraType = Enum.CameraType.Custom
  14. script.Parent.Parent.MainMenu:Destroy()
  15. end)
Add Comment
Please, Sign In to add comment