local TimerDisplay = game.StarterGui.TimerGui.TimerDisplay
local part = script.Parent
local Display = game.StarterGui.TimerGui.TimerDisplay
script.Parent.Touched:Connect(function(hit)
local player = game:GetService("Players"):GetPlayerFromCharacter(hit.Parent)
if player then
Display.Text = player.Name.." wins!"
player.leaderstats.Wins.Value += script.Parent.ToAddWins.Value
player.leaderstats.Cash.Value += script.Parent.ToAddMoney.Value
wait()
end
end)
when i try to do that script it only adds the win value not both and not displaying the player name who touch the part
`

1 comment
The player's UI is located in the PlayerGui folder inside the player object. It's not in StarterGui.