Hello everyone,
Yesterday I encountered something I never had before. My scripts started to randomly just break and some parts not function at all.
Great example is my static script, not moved, not changed, yet it has just randomly stopped working.
Worked just fine but then out of nowhere it just doesn’t. The .Visible just doesn’t fire at all, and when I try to debug it with print() it prints. And I can change the visiblity of the ImageFrames through the command bar and it work just fine. And no, the output is emptyyyy, quite literally nothing.
Fixed it somehow.
Okay so for the people that possibly find this post, make sure if you make a frame invisible on the client, then make it visible on the client too because crossing between server and client apparently isn’t the best idea
local children = script.Parent.Static:GetChildren()
while true do
local rng = math.random(#children)
for index, child in children do
child.Visible = index == rng
end
task.wait(0.3)
end