SWEP Explode in hands problem.

So yes, I’m making a grenade and I want it to explode in hands.
That’s what I’ve tried:


    if CurTime() > 5 then
	local ent = ents.Create("env_explosion")
	ply:Kill()
	end

But it instantly spawns explosion in the middle of the map and it doesn’t kill the player.

[lua]
local ent = ents.Create(“env_explosion”)
ent:SetPos( ply:GetPos() )
ent:Spawn()
ply:Kill()
[/lua]