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

Error with CFrame?

Asked by 10 years ago

Why would this be erroring?

ERROR : 23:12:16.649 - Players.Player.PlayerGui.LocalScript:6: bad argument #3 to 'Angles' (number expected, got no value) 23:12:16.651 - Script 'Players.Player.PlayerGui.LocalScript', Line 6 23:12:16.653 - Stack End

wait()

local Player=game.Players.LocalPlayer

while wait() do 
Player.Character.Head.CFrame=Player.Character.Head.CFrame
*CFrame.Angles(workspace.CurrentCamera.CoordinateFrame)
end

1 answer

Log in to vote
0
Answered by
Diitto 230 Moderation Voter
10 years ago

Why not?

Do:


wait() local Player=game.Players.LocalPlayer while wait() do Player.Character.Head.CFrame= CFrame.new(Player.Character.Head.CFrame.p, workspace.CurrentCamera.CoordinateFrame.p); end
Ad

Answer this question