So I’m trying to use camera manipulation for my intro to my game. But, for some reason it seems not to be working.
Script:
local Camera = workspace.CurrentCamera
local target = game.Workspace.TargetPart
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CFrame.new(target.Position)
Screenshot the Explorer and Script.
Is this LocalScript or Script? If it’s Local then you can’t use “game.Workspace or any like that”, only script.Parent…
I might be wrong but, it might work if you wait for the character to load.
local Players = game:GetService('Players')
local Camera = workspace.CurrentCamera
local target = workspace.TargetPart
local player = Players.LocalPlayer
if not player.Character then
player.CharacterAdded:Wait()
end
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CFrame.new(target.Position)
Sorry if I’m being a bit rude of here but, this wouldn’t really do anything since doing CFrame.new(target.Position) just makes the camera not rotate, and the problem isn’t probably because of the enum.