Hi, I'm working on a gui that lets you get levels and if you reach a certain amount of levels, you complete the quest and it gives you gems which can be used to buy other things, the problem is that I'm not sure how I would save it.
This is the script:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
if player.leaderstats.Levels.Value >= 100 then
print("Has Gems!")
player.leaderstats.Gems.Value = player.leaderstats.Gems.Value + 100
script.Parent.TextSize = 22
script.Parent.Text = "Completed"
script.Disabled = true
end
end)
I want it to save the completed text and the disabled value in the script.
Thanks In Advance!

2 comments
I can't quite understand this, you want to change the player's textlabel.text to completed, when the player finished it?
I assume you have data store to store levels, you can just check if a script is disabled by "script.Disabled == true"