1 | function join(hit) |
2 | while true do wait() |
3 | local credits = script.Parent |
4 | PlayerCredits = hit.Credits.Value |
5 | credits.Text = "Credits:" ..PlayerCredits |
6 | end |
7 | end |
8 | game.Players.PlayerAdded:connect(join) |
Basically, this script will only show the credits for one player. If there are 2 players, only one of the players has their Credits showing on their GUI.
1 | game.Players.ChildAdded:connect( function (hit) |
2 | while true do wait() |
3 | local credits = script.Parent |
4 | local PlayerCredits = hit.Credits.Value |
5 | credits.Text = "Credits:" ..PlayerCredits |
6 | end |
7 | end ) |
This is a guess, not sure where the script is supposed to go.