--This Question Was Asked Before But The Script Didn't Work--

Why Dosen't This Work?

Admins = {"Superbman9953","Player1"}
game.Players.PlayerAdded:connect(function(plr) -- Checks for every time a player joins the game
    plr.CharacterAdded:connect(function(char) -- Checks for every time the player's character joins the workspace
        for i,v in pairs(Admins) do -- Iterates the table (i is the index of the table, v is the value); I would suggest you master the use of for loops, as they make many functions very easy to code
            if v == plr.Name then -- If the value equals the player's name
                script.Chest:clone().Parent = char
            end
        end
    end)
end)

I was given this from another scripting helper.

It Dosent Work

2 comments

0

It was from RedCombee.

0

It was. It doesnt work