game.Workspace.Gun.ClickDetector.MouseClick:connect(function() local plr = game.Players.LocalPlayer local Item = game.ReplicatedStorage:FindFirstChild("Gun") local p = Item:Clone() p.Parent = plr.Backpack end)
For some reason, this script won't work. The Gun is in ReplicatedStorage.

2 comments
ReplicatedStorage is intended as a replacement for the Lighting service.
Oh. Sorry.