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.

2 comments
can you put a print at the start of the function? if it doesn't print, ill give an answer, if it doesnt ill try
and it doesn't print, so the event doesnt work, where should I put the script?