How do you make sure that when you click on a button, it removes a certain value from a leaderstats and that it launches/run an external script?
Thank you
How do you make sure that when you click on a button, it removes a certain value from a leaderstats and that it launches/run an external script?
Thank you
For deleting a certain value from leaderstats, you can do this:
for i,v in pairs(game.Players:GetChildren()) do
if v.leaderstats.ValueName then
v:Delete()
end
end
I'm not sure how to make it run an external script, I would recommend running the code inside of the script that is trying to run the external script instead of trying to run it in a completely different script.
This discussion is preserved as it was. New answers, comments, and votes are closed.