Basically, I want the camera to change CFrames to a part’s CFrame. I thought it was going to be easy, but apparently I keep running in to problems. How it works is by firing a remove event (by a touched event), and changing the camera’s cframe.
What happens is that my camera gets moved to another angle, not changing the CFrame at all (basically).
Here is an img if youre confused:
(what it looks like)
(what i want it to look like)
local event = game:GetService("ReplicatedStorage"):WaitForChild("TutorialCamera")
local TutorialFolder = game.Workspace.Tutorial
local Cam1 = TutorialFolder.StartingCamera
event.OnClientEvent:Connect(function()
local player = game.Players.LocalPlayer
local camera = game.Workspace.CurrentCamera
---
local gui = player.PlayerGui:WaitForChild("Tutorial")
--
local UCarrow = gui.UCArrow
local ChiikenArrow = gui.ChiikenArrow
local MultiplierArrow = gui.MultiplierArrow
local MultiplierPriceArrow = gui.MultiplierPriceArrow
--
local gary = gui.Gary
local text = gui.text
---
----FIRST----
player.Character:WaitForChild("HumanoidRootPart").Anchored = true
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = Cam1.CFrame
-------------
end)
any help is appreciated thanks!!!