game.Players.PlayerAdded:Connect(function(newPlayer)
if newPlayer:IsInGroup(7) then
local Launcher = game:GetService("ServerStorage"):WaitForChild("Launcher"):Clone()
Launcher.Parent = player.Backpack
end
end)
I made this code to make sure whoever is in the group will get an RPG as a gift in my game. But the 4th line that says = player.Backpack the player in this code has an error... I would like a fix please. I worked hard to make this code... :(
Very appreciated!

2 comments
It didn't work I actually wanted it for my RPG, so I did the following the item is in ServerStorage and the script is in ServerScriptService.
game.Players.PlayerAdded:Connect(function(newPlayer) if newPlayer:IsInGroup(9594606) then local RPG = game:GetService("ServerStorage"):WaitForChild("RPG"):Clone() RPG.Parent = newPlayer.Backpack end end)