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

I Cant Turn My Camera To A Scriptable Camera?

Asked by 3 years ago

I have been trying to make my camera turn into a scriptable camera but haven't gotten to work. A snippet of my code looks like this.

local Dice = script.Parent local Cam = workspace.CurrentCamera local Object = game.Workspace.Part

Object.CanCollide = false Object.Anchored = true

wait(1) Cam.CameraType = "Scriptable"

Im really confused.

0
Please use the Lua format tool to format your Code properly WeaponisedPenguins 97 — 3y
0
I realized how wierd it looks rn sorry im new Mittens0924 4 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

Instead of

Cam.CameraType = "Scriptable"

instead do

Cam.CameraType = Enum.CameraType.Scriptable
Ad

Answer this question