Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Thanks for using this script
- --This script is made by Joriangames/Problox Studio Scripts
- --Want to know how to use this? Watch my tutorial: https://youtu.be/f_rPeT83WGg
- local leftArrow = script.Parent.LeftArrow
- local rightArrow = script.Parent.RightArrow
- local camFolder = workspace.CamPositions
- local plr = game.Players.LocalPlayer
- local char = plr.Character or plr:WaitForChild("Character")
- local cam = game.Workspace.CurrentCamera
- local number = 1
- char:WaitForChild("Humanoid").Seated:Connect(function(Sitting, seat)
- if not Sitting or seat.Name ~= "SecuritySeat" then
- leftArrow.Visible = false
- rightArrow.Visible = false
- cam.CameraType = Enum.CameraType.Custom
- return
- end
- leftArrow.Visible = true
- rightArrow.Visible = true
- cam.CameraType = Enum.CameraType.Scriptable
- cam.CFrame = workspace.CamPositions["1"].CFrame
- rightArrow.MouseButton1Click:Connect(function()
- if number == 3 then --change 3 to the highest number in your folder
- cam.CFrame = camFolder["1"].CFrame
- number = 1
- else
- cam.CFrame = camFolder[number +1].CFrame
- number = number +1
- end
- wait(.1)
- end)
- end)
- leftArrow.MouseButton1Click:Connect(function()
- if number == 1 then
- cam.CFrame = camFolder["3"].CFrame --change 3 to the highest number in your campositions-folder!!
- number = 3
- else
- cam.CFrame = camFolder[number -1].CFrame
- number = number -1
- end
- wait(.1)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement