hi, i made a screengui and put it in startergui, so now i need to have the text in the gui change when the player dies. the text starts as 25 so when the player dies i need the text to change to 24 and then when they die again it changes to 23 and so on. also when the text reaches 1 it sets their currency (Stage) to 1 and sets the text back to 25.
this is a script i though could be a start (its a child of the Lives gui)
game.Players.LocalPlayer.Humanoid.Health = 0
script.Parent.TextLabel.Text = 24
end
game.Players.LocalPlayer.Humanoid.Health = 0 and
script.Parent.TextLabel.Text = 24 then do
script.Parent.TextLabel.Text = 23

3 comments
it works, but how can i make it so it sets the players Stage value to 1?
What do you mean?
so when the number reaches 1, it sets all currencies to their original value, also it only works in studio