Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DataStoreService = game:GetService('DataStoreService')
- local WinsDataStore = DataStoreService:GetDataStore('Wins')
- script.Parent.UserId:GetPropertyChangedSignal('Value'):Connect(function()
- local PlayerName = game.Players:GetNameFromUserIdAsync(script.Parent.UserId.Value)
- local Player = game.Players:GetPlayerByUserId(script.Parent.UserId.Value)
- script.Parent.Podium.MiddleBlock.SurfaceGui.PlayerName.Text = PlayerName
- script.Parent.Podium.MiddleBlock.SurfaceGui.WinsAmount.Text = Player.leaderstats.Wins.Value
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement