So I made a mess. But its working.
every frame have the same code.
local point = script.Parent
point.BackgroundColor3 = Color3.new(0, 0, 1)
while true do
if _G.Dotcol == 0 then
point.BackgroundColor3 = Color3.new(0, 1, 0)
elseif _G.Dotcol == 1 then
point.BackgroundColor3 = Color3.new(0, 0, 1)
elseif _G.Dotcol == 2 then
point.BackgroundColor3 = Color3.new(1, 0, 0)
elseif _G.Dotcol == 3 then
point.BackgroundColor3 = Color3.new(0, 0, 0)
end
wait(0.05)
end
I made so many frames to make circle from them.
Image label doesn’t want to react to this code.
Are there a global functions in lua? so i can make one function for all frames, and work on one code, not on their own. I’m begginer scripter and I didin’t found any tutorial on how to make a global function.