Advertisement
Tacidus

IntroCam

Jan 30th, 2022
1,145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local camera = workspace.CurrentCamera
  3. local sss = game:WaitForChild("Workspace")
  4. local pbutton = script.Parent.MainStartbuttonFrame.MainStartbuttonButton
  5. local sgui = script.Parent
  6. repeat
  7.     wait()
  8.     camera.CameraType = Enum.CameraType.Scriptable
  9. until camera.CameraType == Enum.CameraType.Scriptable
  10. print("Camera Type Stablished")
  11.  
  12. camera.CFrame = workspace.StartCamera.CFrame
  13. pbutton.MouseButton1Click:Connect(function()
  14.     camera.CameraType = Enum.CameraType.Custom
  15.     sgui.Enabled = false
  16. end)
  17.  
  18. pbutton.MouseButton1Click:Connect(function()
  19.     pbutton.Parent.Parent.Enabled = false
  20.  
  21. end)
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement