local groupId = 3438449 local tool = game.StarterPack.Musket
function onPlayerSpawned(player) if player:IsIngroup(groupId) then tool:Remove().Parent = player.Backpack.Musket end end
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function() onPlayerSpawned(player) end) end)
This is what I got, its meant to remove the Musket tool if in the groupID at the top, It isn't working and I can't seem to get it to work.

1 comment
If you want your code to be more readable, you can edit it and put the code into the block created by pressing the blue lua button.