Anyone want to help me on fixing this script? [NOT SOLVED]
Basically, it's a first-person death script. Whenever you die, your view is wherever your head is looking.
However, it doesn't work. How can I fix this?
03 | local function CalcView( pl, origin, angles, fov ) |
06 | local ragdoll = pl:GetRagdollEntity(); |
07 | if ( !ragdoll || ragdoll = = NULL || !ragdoll:IsValid() ) then return ; end |
10 | local eyes = ragdoll:GetAttachment( ragdoll:LookupAttachment( "eyes" ) ); |
23 | hook.Add( "CalcView" , "DeathView" , CalcView ); |