#code organisation

1 messages · Page 1 of 1 (latest)

jolly horizon
#

i have script EntityManager that should store data abt entities and test for testing spawn entities
the issue is i have field EntityManager.Entities for all objects of class EntityManager
i can make custom .__index function to make it return nil, but im sure that its not a good solution.
How should i organise my scripts? maybe i need some diff class? im not rly into roblox oop and metatables, explain someone pls

patent sparrowBOT
#

studio** You are now Level 4! **studio

jolly horizon
#

ig i need entity class separate from entity manager maybe

#

still lf any comments

#

But idk how to get class "type"

#

Why am I talking with myself evilcat

#

Pls help anybody I'm stupid

#

alr if noone want to help me ill go make shit code

#

ig i found a way to make it all good

#

why i even opened this topic