I am making a lives system, and currently, I cannot get it to work. If anyone knows how to get this to work, it'd be much appreciated. Basically, if the value of "lives" is zero, it will put you on the first spawn point, and inside the GUI, the textlabel named "Text" will change according to the value.
local lives = script.Parent.Lives
if lives.Value = 0 then
player.Team = "Level One"
end
local LD = script.Parent.Parent.LivesDisplay
local text = script.Parent.lives.text
end

1 comment
Also, it won't change every time with this simple script, you will need a function connected to an event: http://wiki.roblox.com/index.php?title=Event