I’m currently trying to make a system for my Backrooms game that easily allows me to film trailers. This is my current code:
local input = script.Parent.Parent
local button = script.Parent
local plr = game.Players.LocalPlayer
local GUI = plr.PlayerGui
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local cam = game.Workspace.CurrentCamera
local musicA = game.Workspace.Level0Music
local musicB = game.Workspace.Blackout
button.MouseButton1Click:Connect(function()
if input.Text == "0.2" then
print("Playing 0.2 trailer footage")
char:WaitForChild("HumanoidRootPart").Anchored = true
musicA:Stop()
musicB:Stop()
cam.CFrame = CFrame.new(Vector3.new(0, 0, 0), Vector3.new(0, 0, 0))
end
end)
For some reason the camera does not move. Everything else in the script works though.
Edit: After changing some of the CFrame, it seems only the position Vector3 doesn’t work