I want to spawn an entity right in front of the player’s eyes. I have the spawning working fine, but haven’t got it to spawn in front of the player yet. This is my code to find the postition:
local trace = pl:GetEyeTraceNoCursor() local sPos = trace.Normal sPos:Mul( 8 ) sPos = sPos:Add( trace.StartPos )
With pl being the player of course. When I test it, it says that sPos is not a vector and is nil. What have I done wrong?