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

Character Appearance help? #2 [closed]

Asked by
Vividex 162
10 years ago

Now that the code is fixed (thanks to LordDragonZord) I wanted to know how I could make this code:

game.Players.PlayerAdded:connect(function(Player)
wait(.5)
    Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=31790662" 
wait(15)
Player:LoadCharacter()--Wait 15 seconds then respawn.
end)

only change me to the character and no one else. Does anyone have some tips on doing this or something that might help?

1
if player.Name:lower() == "vividex":lower() then --Sorry for not explaining in an answer, I'm feeling a bit lazy! Thetacah 712 — 10y
1
@Thetacah under the first line and above the second I added what you said, and now it doesn't char me at all! theres a red line under the : in :lower and says "Expected 'then', got ':'" Vividex 162 — 10y
1
ye you have to add a but more, just follow Ditto I guess. Thetacah 712 — 10y

Locked by NinjoOnline, EzraNehemiah_TF2, Redbullusa, and BlueTaslem

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Diitto 230 Moderation Voter
10 years ago
game:service'Players'.playerAdded:connect(function(Player)
    Player:waitForChild'Backpack';--// Waits until they have a backpack, moreof character recognition.

    if(Player.userId==39704067)then--// 39704067 is Vividex's userId.
        wait(.5);--// A bit more delay.
        Player.CharacterAppearance='http://www.roblox.com/Asset/CharacterFetch.ashx?userId=31790662';--// Changed their appearance to the specified characterappearance.

        delay(15,function()--// Same as wait(15), but more efficient.
            if(Player and ypcall(function()assert(Player.Parent==game:service'Players','');end))then
                Player:loadCharacter();
            end;
        end);
    end;

end);

Updated.

1
Game shuts down, Thanks for trying tho ;c. Vividex 162 — 10y
0
How could the game shut down..? I changed my answer to put a bit of delay, just in case your code was interfering with the CoreScript code. Diitto 230 — 10y
0
Also, I used userId instead of Name, so that you did not have to worry about name changes. Diitto 230 — 10y
1
Thanks! It worked, I had a friend come and wait about a minute and it only changed me! Vividex 162 — 10y
0
No problem. If you wish to change multiple people, just have a table that contains their userIds, and when they join, check to see if they are in the table. Diitto 230 — 10y
Ad