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
local plrs = game:GetService("Players")
local stick = game.ServerStorage.Stick

plrs.PlayerAdded:Connect(function(plr)
    if plr:WaitForChild("Backpack") then
        local dup = stick:Clone()
        dup.Parent = plr:FindFirstChild("Backpack")
        print("successful")

    end
end)

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