This is my script in ServerScriptService
.
1 | local gear = game:GetService( "ServerStorage" ):WaitForChild( "GravityCoil" ) |
2 |
3 | game.Players.PlayerAdded:Connect( function (plr) |
4 | if plr.Name = = "kingblaze_1000" then |
5 | local clone = gear:Clone() |
6 | print (clone.Name) --//Prints successfully. |
7 | clone.Parent = plr:WaitForChild( "Backpack" ) |
8 | end |
9 | end ) |
Thanks for taking your time and I appreciated any attempt on answering my question
1 | local gear = game.ServerStorage:WaitForChild( "GravityCoil" ) |
2 |
3 | game.Players.PlayerAdded:Connect( function (plr) |
4 | if plr.Name = = "itz_rennox" then |
5 | repeat wait() until plr:WaitForChild( "Backpack" ) |
6 | gear:Clone().Parent = plr:WaitForChild( "Backpack" ) |
7 | end |
8 | end ) |