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

How do I make the player spawn with a certain outfit on and not their own?

Asked by 10 years ago

If you know the answer, please leave a comment.

2 answers

Log in to vote
-1
Answered by 10 years ago

OR you could do this to save ALOT of time. Change the ChrNum numbers to actual player id's and to find a player id go to ur profile and look on the address bar for the id =blah and just copy the numbers to the table. Even YOURS if you want so it saves time making every different type of character.

DO NOT PUT THIS IN A LOCAL SCRIPT.

local ChrNum = {"39563808","80254","1","48705637","15861410","42943434"}



local Randomizer = ChrNum[math.random(1,#ChrNum)]
game.Players.PlayerAdded:connect(function(plr)
    local use = true
    plr.CharacterAdded:connect(function(chr)
        if use == true then
            use = false
            plr.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..Randomizer.."&placeId="..game.PlaceId
            wait()
            plr:LoadCharacter()
        end
    end)
end)
0
Thanks for helping out! It helped me a bunch. Luigi7381 25 — 10y
0
NPS TochiWasHere 10 — 10y
Ad
Log in to vote
-2
Answered by 10 years ago

Use the PlayerAdded event, and if you need certain people use a table. Other than that, all you need to do is use the object insert a shirt, and pants into workspace, put them wherever, then when a player joins, connect it together using strings. That's pretty much how you spawn a player with clothes.

PlayerAdded is a event, that fires whatever you need, RIGHT when a player has entered the game.

Functions are boxes, that have statements, or any other such of code contained inside of them. You can call a function, by using it's name and adding parentheses at the end like this

function blah()
-- statement, or anything that is inside. Say maybe something like game.Workspace:ClearAllChildren()
end

-- This will be where you would put your event, then at the end of the event you would say

Script.Touched:connect(blah)

I hope I helped!

Answer this question