This is my camera script thats inside a part, it makes the player see where the parts front is. I used this a long time ago and its not working now, can someone fix it?

script.Parent.mouseClick:connect(function()
game.workspace.CameraPart.Position = Vector3.new(-81.559, 4.172, 57.395)
game.workspace.CameraPart.Orientation = Vector3.new(-45, 180, 0)

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:wait()
local Camera = workspace.CurrentCamera

repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable

Camera.CFrame = workspace.CameraPart.CFrame
end)

1 comment

0

This is not constructive. You're only requesting the fixed version and this is too broad.