Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When using this camera script, my character is stuck. Help?

Asked by 10 years ago
wait(3)
local player = game.Players.LocalPlayer
local character = player.Character
local camera = workspace.CurrentCamera
while true do
camera.CameraType = "Scriptable"
Pos = Vector3.new(0,15,0) + script.Parent.Parent.Character.Head.Position
Targ = script.Parent.Parent.Character.Head.Position
camera.CoordinateFrame = CFrame.new(Pos, Targ) --0,15,0
wait(0.01)
end

The script works when I move the character by dragging him in studio, but for some reason he won't move(I have confirmed this). No errors. Help?

1 answer

Log in to vote
1
Answered by 10 years ago

Try this. Not 100% guaranteed to work. Create a LocalScript and place in StarterGui.


--Assorting cam = game.Workspace.CurrentCamera plr = script.Parent.Parent chr = plr.Character while wait(.001) do cam.CameraType = "Scriptable" cam.CameraSubject = chr.Head -- Replace Head with Humanoid for original CameraSubject end

If that's not the script you are looking for, I'm sorry.

0
I am trying to make the camera stare down above the player, but neither of the scripts work. Thanks for the attempt! tkddude2 75 — 10y
Ad

Answer this question