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

How can I get this gui based board game to work?

Asked by 8 years ago

The gui changes are only visible to the first person to join the game, and even then not all player slots change to the player's profile image. Here's the script:

function PlayerAdded (player)
    if game.Players.NumPlayers == 1 then
        script.Parent.Player1.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" ..player.Name
    end
    if game.Players.NumPlayers == 2 then
        script.Parent.Player2.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" ..player.Name
    end
    if game.Players.NumPlayers == 3 then
        script.Parent.Player3.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" ..player.Name
    end
    if game.Players.NumPlayers == 4 then
        script.Parent.Player4.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" ..player.Name
    end
    if game.Players.NumPlayers == 5 then
        script.Parent.Player5.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" ..player.Name
    end
    if game.Players.NumPlayers == 6 then
        script.Parent.Player6.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" ..player.Name
    end
end

game.Players.ChildAdded:connect(PlayerAdded)
0
Oh, and this is a regular script Noobegai -4 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

For the Picture, change the link to this and it might work. (Not confirmed) "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="

0
Now everybody can see their profiles, but not everyone else's. Noobegai -4 — 8y
Ad

Answer this question