Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why isn't my camera localscript even working?

I made a simple camera script, in a local script, which makes the player view a part 5 seconds after joining.

This is in a local script.

local cam = game.Workspace.CurrentCamera
local camnewton = game.Workspace.NewCamNewton

wait(5)
cam.CameraSubject = camnewton
cam.CameraType = "Scriptable"

4 comments

0

You need to make it an enum. like ( enum.CameraType.Scriptable)

0

still doesn't work, just tried.

0

You can't use "CameraSubject" when you set the Type to "Scriptable". Instead, set the "CameraType" to "Custom".

0

Or use Cam.Focus

1 answer

Ok When I did this I made a script so when the players joins the game the camera script is cloned into the players backpack.

Here

local CameraScript = --where the camera script is 
local Player = game.Players.LocalPlayer
local PlayerBackpack = Player.Backpack

--// Scripting //--

CameraScript:Clone() -- Clones Script --
CameraScript.Parent = PlayerBackpack -- Puts The Script Inside The Players Backpack --

-- Just put this script inside workspace because that's what I did and it worked --

This discussion is preserved as it was. New answers, comments, and votes are closed.