Hello everyone, currently I'm trying to make a Camera spin around a Character 360°. However, I do not know how. I've currently had a try using this script:
ang = 0
while true do
wait(0.1)
local cam = game.Workspace.CurrentCamera
cam.CameraSubject = game.Players.LocalPlayer.Character
cam.CameraType = "Scriptable"
--ang = ang + 0.01
cam.CoordinateFrame = CFrame.new(0,10,10) * CFrame.Angles(1,ang,0)
end
However, it makes the camera spin. Not spin around the CHARACTER. So how can I go around doing this? thank you :)
EDIT: *** FIXED ***
ang = 0
while true do
wait(0.01)
local cam = game.Workspace.CurrentCamera
cam.CameraType = "Scriptable"
ang = ang + 0.01
cam:Interpolate(game.Players.LocalPlayer.Character.Head.CFrame * CFrame.Angles(0,ang,0) * CFrame.new(10,5,0),game.Players.LocalPlayer.Character.Head.CFrame,0.01)
end

3 comments
Nope :/
Hmm.. what happens when you run it? When I tested it, it worked fine.
AROUND a character. Not on a character.