hi, why is this giving me an orange line tho?
Because ClickManager
does not have PlayerGui
field.
PlayerGui is never declared in advance
what should i do to solve this problem
nvm guys ima just do it this way thanks
function ClickManager.brand()
local self = setmetatable({}, ClickManager)
self.PlayerGui = ClientPlayer:WaitForChild("PlayerGui")
self.ScreenGuis = {}
self.ScreenGuis.ClickGui = self.PlayerGui:WaitForChild("ClickGui")
return self
end
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.