Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't my camera localscript even working?

Asked by 7 years ago

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"
0
You need to make it an enum. like ( enum.CameraType.Scriptable) douglel 1 — 7y
0
still doesn't work, just tried. GroovyII 4 — 7y
0
You can't use "CameraSubject" when you set the Type to "Scriptable". Instead, set the "CameraType" to "Custom". Mayk728 855 — 7y
0
Or use Cam.Focus RubenKan 3615 — 7y

1 answer

Log in to vote
0
Answered by
YTGonzo 20
7 years ago

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 --
Ad

Answer this question