Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a script that puts items in backpack of player when they join?

Asked by 4 years ago
01local plrs = game:GetService("Players")
02local stick = game.ServerStorage.Stick
03 
04plrs.PlayerAdded:Connect(function(plr)
05    if plr:WaitForChild("Backpack") then
06        local dup = stick:Clone()
07        dup.Parent = plr:FindFirstChild("Backpack")
08        print("successful")
09 
10    end
11end)

this is my script, I have notice that the script works but the tool is not in the backpack and I don't have a clue where the tool went.

1 answer

Log in to vote
1
Answered by 4 years ago

You dont need to use a script,is not recommended

Do this: Just put the tool you want to the StarterPack and done.

Hope it helps!

0
Good job yuni! Roger111 347 — 4y
0
Thx yuni_Boy1234 320 — 4y
0
I was going to say that so I could get more reputation lol(Is that illegal or something?) Crazydave601 0 — 4y
Ad

Answer this question