Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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.

1 comment

0

I am trying to make the camera stare down above the player, but neither of the scripts work. Thanks for the attempt!

This discussion is preserved as it was. New answers, comments, and votes are closed.