How do I make an item spawn in a player's hand when clicked?

So the question is how to make when the player clicked, at any point on the screen, he appeared in his hand party. In advance, I will say that this party should be able to throw like a grenade, but I already have it ready, so now I need to do ONLY his spawn when you click. I do not want it to be a tool, I do not want it to show up in the inventory. How do I do?

I repeat I need that when you click on any part of the screen in the player’s right hand appeared this party, and you want it was not in his inventory, or that he just did not show up there

2 Likes

Put this in ServerScriptService

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local Mouse = plr:GetMouse()

		local OriginTool = workspace.SussyTool
		local Tool = OriginTool:Clone()

		Mouse.Button1Down:Connect(function()
			Tool.Parent = plr.Backpack
			char:WaitForChild("Humanoid"):EquipTool(Tool)
		end)
	end)
end)

Sorry for so much editing im not home rn and im on my phone…

4 Likes