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

I made a camera script that isn't working but I'm not getting any errors....?

Asked by
AlphaY7 -3
4 years ago

So I recently wanted to make a start menu so I made a script that would make the camera sort of hover in front of the player. I have two parts named "EndPart" and "FocusPart" both where I want them but my script is not doing anything.(also, I know I shouldn't use Interpolate but I never have any issues with it..) Here is the script:

wait(0.1)
print("Camera Script Starting")

local cam = workspace.CurrentCamera
local player = game.Players.LocalPlayer
local FocusPart = game.Workspace.FocusPart
local EndPart = game.Workspace.EndPart

cam.CameraType = "Scriptable"
cam:Interpolate(EndPart.CFrame, FocusPart.CFrame, .7)

Answer this question