I am trying to create oop
classes, yep simple as that.
I have this script which creates the oop
class and stores it in a ModuleScript
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
-- Where the class will be stored
local ClientProfile = require(script.Parent:WaitForChild("ClientProfile"))
-- The oop class itself
local ClientPlayerProfile = require(script.Parent:WaitForChild("ClientPlayerProfile"))
local ProfileInfo = {}
ProfileInfo.Player = LocalPlayer
local Profile = ClientPlayerProfile:New(ProfileInfo)
ClientProfile.Profile = Profile
ClientProfile.Profile:Initiate()
Now in the oop
class :Initiate()
method, There are 2 more classes which are created. But here’s where the fun starts. As soon as I delete the script above, the processing just stops, even though the class is stored in another ModuleScript
.
Why is this happening?