Spawn Entity Initial Spawn

Hey, i’m having trouble creating a simple lua script that will on PlayerInitialSpawn, run a gm_spawnsent on the player, or at least create an entity at the location of the player by the player.


function SpawnSent(ply)
	ent = ents.Create("your_ent")
	ent:SetModel("model/path.mdl")
	ent:SetPos(ply:GetPos + Vector(x,y,z))
end
hook.Add("PlayerInitialSpawn", "SpawnSENT", SpawnSent)