I have a common Npc/monster script, but I changing it to replace the hard coded constants with either DataStore or “Tags”
I want to populate those values (speed, HP, etc) when each object is cloned and added to the workspace.
I don’t think Lua has a constructor concept so I was thinking my choices were either leveraging DataStore or tags.
What is the recommended design for this?
By tag I mean this:
local tag = Instance.new(“IntValue”)
tag.Name = “speed”
tag.Parent = npcClonedObject
tag.Value = value