I want to the label text display how much the player gain. Like if he gain 10+ coins that will appear in the text
local stats = game.Players.LocalPlayer.leaderstats:FindFirstChild("Coin")
local player = game.Players.LocalPlayer
stats.Changed:Connect(function()
script.Parent.Text = "+".. stats.Changed.Value
if player.stats.Changed then
script.Sound:Play()
script.Parent.Text.Visible = true
wait(5)
script.Parent.Text.Visible = false
end
end)
this script is in a localscript inside a textLabel.GuiScreen in the StarterGui
one more thing is if is possible to make the text appear randomly in the screen?
