local statsHandler = {}
local selected = 'Knight'
local frame = script.Parent
local class = frame:WaitForChild('Class')
local armour = frame:WaitForChild('Armour')
local weapon = frame:WaitForChild('Weapon')
local select = frame:WaitForChild('Select')
local previous = frame:WaitForChild('Previous')
local next = frame:WaitForChild('Next')
previous.Activated:Connect(function()
if selected ~= 'Knight' then
selected = 'Knight'
previous.ImageColor3 = Color3.fromRGB(25, 25, 25)
next.ImageColor3 = Color3.fromRGB(85, 170, 255)
end
end)
next.Activated:Connect(function()
if selected ~= 'Archer' then
selected = 'Archer'
next.ImageColor3 = Color3.fromRGB(25, 25, 25)
previous.ImageColor3 = Color3.fromRGB(85, 170, 255)
end
end)
return statsHandler
Been trying to stick to 1 server/1 local script and trying to use module scripts around the place. Would this be the way to go around it in one way? Having a module within each seperate frame (for example a shop module to handle all the shop ui elements, etc.) or this example which handles a class UI. Any advice/tips would be great