Hey guys how do I make it so when a variable is greater then a certain variable do this function. Here is what i’ve tried.
local function saveScore( event ) --The variable values are up above. if M.score \> text.text then score.subtract(event.target.value) else score.save() end