Jump to content

Recommended Posts

gorf

local characters = {
	"webber",
	"wormwood",
	"wilson"
}

for k, v in pairs(characters) do
	AddPrefabPostInit(v, function(inst)
		inst:AddTag("special")
	end
end

I didn't test it, if it doesnt exactly work alteast you get the gist of it

On 11/13/2022 at 3:35 AM, TemporarySolutn said:
for k, v in pairs(characters) do
	AddPrefabPostInit(v, function(inst)
		inst:AddTag("special")
	end
end
 
I've tried using this code, but it seems like the only problem here is that the parentheses is not closed.


image.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...