Made a code to move a tool to the players backpack if they had a specific name, it doesn't want to work.
game.Players.PlayerAdded:Connect(function(player) if player.Name == "TudiPYM" then local register = game:GetService("ServerStorage"):WaitForChild("Black Registry") local clone = register:Clone() clone.Parent = player.Backpack end end)
This is a script inside of ServerScriptService.
You can probably try this way.
game.Players.PlayerAdded:Connect(function(player) for i,v in next,game.Players:GetPlayers() do if player.Name == "TudiPYM" then local register = game:GetService("ServerStorage"):WaitForChild("Black Registry") local clone = register:Clone() clone.Parent = player.Backpack end end end)