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

I wanted to make a coins system without all the coins having the same script?

I want to make a currency system and I already know how I'm going to do it, but I don't want each currency to have a script with all that information, so, I would like to know if there is any way that I don't need to put a script in each coin? maybe a Module Script?

2 answers

✓ Accepted answer

Yes, use a module script for each coin if you don't want lines of code on each coin and good luck on your game.

for index, Coin in next, Coins:GetChildren() do
	Coin.Touched:Connect(function()
		-- Coin script
	end)
end

This discussion is preserved as it was. New answers, comments, and votes are closed.