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!
Okay, so i have found the fix it has to be a script in ServerScriptService deleted where it says "6351583" and put ur group id there.
game.Players.PlayerAdded:Connect(function(newPlayer) if newPlayer:IsInGroup(6351583) then local Launcher = game:GetService("ServerStorage"):WaitForChild("Launcher"):Clone() Launcher.Parent = newPlayer.Backpack end end)
you made the player newPlayer so it has to be
newPlayer.Backpack
not
player.Backpack