I'm not entirely certain, but I do not believe you can use Lighting
to reference the service unless you've defined it as a variable, so make it Weapon = game.Lighting.Musket
unless you have a variable set for Lighting
.
Also, where it says Weapon:clone().Parent = Player.Backpack
, there is a problem: you used ClickedPlayer
as the parameter to MouseClick
, but then you called Player
. Change that to ClickedPlayer
.
This is all I could find; I hope this works for you!
EDIT: If you have any other questions, check out the MouseClick
page on the Wiki : http://wiki.roblox.com/index.php?title=MouseClick_(Event)