So I was learning about Camera Manipulation, and when I tested it out, all of a sudden my character flips out for no reason when I move... Is there a reason why it does that, and how can I fix it?
Here's a link to the video demonstrating my player freaking out.
Link: https://youtu.be/xhN3O9pm9yE
And here's the code for the Camera Manipulation:
local target = game.Workspace.SpawnLocation
local camera = game.Workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
local angle = 0
while wait() do
camera.CoordinateFrame = CFrame.new(target.Position) --Start at the position of the part
* CFrame.Angles(0, angle, 0) --Rotate by the angle
* CFrame.new(0, 10, 30) --Move the camera backwards 30units, 10 units up
angle = angle + math.rad(1)
script.Parent.Play.MouseButton1Click:connect(function()
script.Parent.Play.Visible = false
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
end)
end
And if you'd like to check out the place for yourself, here's the link to that, too.
Link: http://www.roblox.com/games/322474814/Donations
Note: Don't mind the donations thing for my place, I used to have BC, but it expired, so I wanted to use the script at the place of Donations. Also, I learned this information from Roblox Wikipedia... If that helps at all :P
Thank you :)

1 comment
Wow! Thank you so much for helping me!