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

Why is this code from the wiki crashing my game?

Asked by 8 years ago
game.Players.PlayerAdded:connect(function(Player)
    Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=23749623" 
end)

copied straight from the wiki to test it out, and it crashes the game online. i made a test site that was empty except for a server script in ServerScriptService with the above code pasted into it. I published it and joined the game, and the server shuts down. Is CharacterAppearance not turned on? Does anyone else use this, and can you tell me how to use it please.

1 answer

Log in to vote
0
Answered by
WVPII 5
8 years ago

Are there any other scripts in the game? What does the dev console say?

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(char)
        if shirt = char:findFirstChild("Shirt") then -- This might be wrong, haven't coded for a while
            shirt.ShirtImage = "(I forgot how to do asset IDs)"
        else
            local sp = Instance.new("Shirt", char)
            sp.ShirtImage = "(I still haven't remembered how to do asset IDs)"
            end
        end)
end)
0
Repeat that for pants WVPII 5 — 8y
Ad

Answer this question