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

Interpolating a camera, but error says needs Scriptable mode. Why wont it work?

I want move (Interpolate) the camera to a certain place. It worked a couple of times, but then it stopped working because it needed the camera type had to be Scriptable, and it already was set to Scriptable! My code:

wait(0.1) --Gives some time for the cam to switch to scriptable
workspace.Camera:Interpolate(CFrame.new(-60, 17, -30), CFrame.new(50, 20, 5), 2)

I have no clue why the first position setter (right above ^ ) is a CFrame value, but since it worked the first few times, I just went with it.

This shouldn't be to hard to solve right? If you need more code, plz tell me, I will add more because I have more code like the script. Thank you so much!

1 answer

You need to set the camera type to scriptable

workspace.Camera.CameraType = "Scriptable"

wait(0.1) --Gives some time for the cam to switch to scriptable
workspace.Camera:Interpolate(CFrame.new(-60, 17, -30), CFrame.new(50, 20, 5), 2)

3 comments

0

The camera was already set to scriptable

0

What? Set it again using a script.

0

Don't do this, use Enum.CameraType.Scriptable instead

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