I just tried this script and i don't know why it didn't work can you help me out?
local player = game.Players.LocalPlayer local clone = game.Workspace.Handgun:Clone() local mouse = script.Parent.MouseClick:Connect(function(mouse) if mouse then clone.Parent = player.Backpack end end)
How do you give players a tool when the mouse get clicked like in Prison Life! Thank you for reading this!
local Clickdect = --the location of your click detector local klone = game.Workspace.Hangun.clone() Clickdect.MouseClick:Connect(function() klone.Parent = game.Player.LocalPlayer.Backpack end)