Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

remove value and launches/run a script ?

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

1 answer

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.