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

How to make people in your game spawn with an outfit on?

Asked by 9 years ago

so i've been making a game on studio and i want people to all spawn with a certain outfit. but i don't know how. does anyone know?

2 answers

Log in to vote
0
Answered by 9 years ago

Hey there skyfall,

Glad to know you're interested in CharacterAppearance!

Let's take a look at an example script we could use:

PlayerID = "" -- The ID of the player who everyone would like it.

game.Players.PlayerAdded:connect(function (newPlayer)
    newPlayer.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" ..PlayerID
    newPlayer:LoadCharacter()
end)
0
hi just asking do i do it exactly like that Skyfall106GamingMLG 0 — 9y
0
Nice alternative method. @Skyfall106GamingMLG This answer will make the person spawning it, look like a Player of your choosing! Shawnyg 4330 — 9y
Ad
Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

Glad you asked. I won't provide a script, since you didn't show effort, but I'll provide an explanation. You'd use the CharacterAdded event to detect when a Player's character spawns. After that, I recommend searching if it contains a T-Shirt, Shirt, and Pants (T-Shirt is ShirtGraphic I believe), then delete them. After deleting them, create new ones, with your own ids. That's pretty much it!

0
Also a method. A good one if you don't want to use another player. AmericanStripes 610 — 9y

Answer this question