New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Still have questions? Join our Discord server and get real time help.
Log in to vote

Is it possible to cancel a camera script?

Asked by 3 months ago

So, basically what I'm doing is a loadout background. And once the player hits a certain text button, the script will cancel (allowing the camera to go back to the player and letting the player control their camera) while the script gets ready for the next time the player dies and respawns to apply again. Is it possible?

Current script

local Player=game.Players.LocalPlayer
local Char=Player.Character or Player.CharacterAdded:Wait()
local camera=workspace.CurrentCamera


1 answer

Log in to vote
Answered by 3 months ago

Alright so I would recommend adding something along the lines of this into your script.

This is in GUI Button form to fix the Camera.

You basically have to destroy the current camera and bring a new camera to workspace.

function buttondown()
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"


Again, this is in GUI Button form so you'll have to tinker around a bit.

I'm a bit confused, I am using a GUI button and it isn't working. Or maybe I am doing something wrong, is there a part name I need to change? Used_Develop 12 — 3mo

Answer this question