- What do you want to achieve? Keep it simple and clear!
I want to make a camera script, which looks at an NPC for a few seconds. The player will then fight them.
- What is the issue? Include screenshots / videos if possible!
It looks at the main SpawnLocation, despite many tests showing that it sets the location of the camera.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Nothing matches my problem. This problem went on for a few months now, and has made me lose motivation. I quit several projects due to this.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
My code:
local Camera = workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable --Scriptable1837848642 mode
workspace.CurrentCamera.CFrame = CFrame.new(workspace.SpawnLocation.Position + Vector3.new(0, 4, 5), Vector3.new(workspace.SpawnLocation.Position + Vector3.new(0, 4, 6)))
workspace.Music.Played:Wait()
Camera.CFrame = CFrame.new()
Camera.CameraType = Enum.CameraType.Custom
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.