Hello. I wrote a script that takes their values from the folder with variables and if it is false, moves the frame in which this script is located to another frame. To make it clearer I will attach a photo.
The problem is that the frame only moves once. According to the idea, it first lies in NotingSkills, after the player clicks on it it moves to PlayerSkills
local Values = script.Parent.SkillsFrame.Values
for _, object in ipairs(Values:GetChildren()) do
if object:IsA("BoolValue") then
if object.Name == "Speed" and object.Value == true then
print("okey")
end
end
if object:IsA("BoolValue") then
if object.Name == "Speed" and object.Value == true then
print("no")
end
end
end