Im attempting to make a script where if you press the key Q you will explode but am having some issues.

local player = game.Players.LocalPlayer
local character = player.Character
local explosion = Instance.new("Explosion")
local UserInputService = game:GetService("UserInputService")

UserInputService.InputBegan:Connect(function(key,gp)
	if not gp and key.KeyCode == Enum.KeyCode.Q then
		local ex2 = explosion:Clone()
		ex2.Parent = character.Humanoid.
	end
end)

I have this as of now but it just explodes on the area where I spawned and doesn't directly blow up my player when I press Q. Any insight on this? Am I missing something? Thank you.

BTW if I am missing something obvious I apologize as I am a beginner scripter.