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

Last one about Player?

Asked by 9 years ago

Okay many people helped me to understeand this and I have to thank them, tho'I need one last answer,

function Add(Player) 
    if Player.Name == "rinus17" then
        local emi = game.Lighting:WaitForChild("Emi")
    emi:Clone().Parent = Player:WaitForChild("Backpack")
    emi:Clone().Parent = Player:WaitForChild("StarterGear")
end
    if Player.Name == "brokenrares" then
        local emi = game.Lighting:WaitForChild("Sword")
    emi:Clone().Parent = Player:WaitForChild("Backpack")
    emi:Clone().Parent = Player:WaitForChild("StarterGear")
    end
end

game.Players.PlayerAdded:connect(Add)

If both of them are ingame, the one who joined the first has the tool and the other doesn't have his.

Answer this question