Deleted script but it works (it seems like its not duplicated)

So i try to make script for cutscene, it goes like this:

wait(6)
print("script runs ngl")
local cam = workspace.CurrentCamera
local player = game.Players.LocalPlayer
local focuspart = game.Workspace:WaitForChild("focuspart")

cam.CameraType = "Fixed"
cam.Focus = focuspart.CFrame
wait(3)

cam.CameraType = "Custom"
cam.CameraSubject = player.Character.Humanoid

for some reason game starts with camera locked at one place not assigned for this and releases after 6 seconds. So i removed script (it was camera type scripted with coords before) and it didn’t help. So i added script again and looked for reference using lines of codes with ctrl+shift+f and again nothing but this script. What the hell is going on here, ik its script and not camera thing in workspace because it releases camera to player after 6 secs.
Also when i removed this script, issue still happened, and i didnt actually receive debug, but i think i added it recently, also no callstacks on output or anything suggesting eventual script’s place.

1 Like

If you’d be fine with just setting the CFrame then the code would be:

local x = 6; 
local cam = workspace.CurrentCamera;
local player = game.Players.LocalPlayer;
local focuspart = game:GetService("Workspace"):WaitForChild("focuspart");

cam.CameraType = Enum.CameraType.Scriptable;
cam.Focus = focuspart.CFrame;

task.wait(x);

cam.CameraType = Enum.CameraType.Custom;
cam.CameraSubject = player.Character.Humanoid;

Hope this helps :smile:

Hi, script seems nice but i have problem, for some reason ( more info i got) camera makes itself fixed and i dont have script for that, it is fixed with your script which then changes to custom. Also i see that CFrame nor position whatever i change does move at all and it is in basic position, which you have after deleting camera in workspace. What is happening.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.