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

How can I give specific people different clothes in my game? [closed]

Asked by 4 years ago

so, I'm making a game for my small community of friends, How can you make it for Certain people like if player.Name == "KingDaimTheGreat" then cause I’m trying to make it so only specific people wear specific clothes, also can i make so a player has a specific accessory.

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago

What I'd probably want to do is have a script in the ServerScriptService using

game.Players.PlayerAdded:Connect(function(Player)
    if Player.Name == "-your friend's name here-" then
        local shirt = Player.Character:WaitForChild("Shirt")
        local pants = Player.Character:WaitForChild("Pants")

        shirt.ShirtTemplate = "-your id here-"
        pants.PantsTemplate = "-your id here-"
    end

end

Hopefully, that fixes it. And if doesn't, just comment and I'll see what's wrong with it.

Ad