The script is just basic UI movements, and instead of typing out a script for each label, I did it all in one script. Though, it works for labels H and E, but for some reason, not for M. (No errors, if it worked for H and E, it should work for M)
I've tried different methods, even typing out an individual script for the label M and still does not work.
The actual event does not fire for the label M and there are no problems with my formatting/script. So, not really sure what the problem is, unless there is a glitch from ROBLOX.
for i,v in pairs (Stats:GetChildren()) do
if v:IsA("Frame") and v.Name ~= ("HelpText") then
for i, ChildrenofV in pairs (v:GetChildren()) do
ChildrenofV.MouseEnter:connect(function() --- Mouse Over Effect
print(ChildrenofV)
if ChildrenofV.Name == ("H") or ChildrenofV.Name == ("E") or ChildrenofV.Name == ("M") then
print(ChildrenofV.Parent)
local Hide = ChildrenofV.Parent:FindFirstChild("Hider")
print("Mouse Enter")
Hide:TweenSizeAndPosition(UDim2.new(.1,0,.8,0), UDim2.new(8.4,0,Hide.Position.Y.Scale,0), "Out", "Quad", .35, true)
wait(.4)
while Hide.Position == UDim2.new(8.4,0,Hide.Position.Y.Scale,0) do
repeat
Hide.Parent:FindFirstChild("Bar").BackgroundColor3 = Color3.new(76/255, 100/255, 130/255)
wait(.3)
Hide.Parent:FindFirstChild("Bar").BackgroundColor3 = Color3.new(57/255, 74/255, 97/255)
wait(.3)
until
Hide.Position == UDim2.new(1,0,Hide.Position.Y.Scale,0)
end
end
end)
ChildrenofV.MouseLeave:connect(function() --- Mouse Leaving Effect
if ChildrenofV.Name == ("H") or ChildrenofV.Name == ("E") or ChildrenofV.Name == ("M") then
local Hide = ChildrenofV.Parent:FindFirstChild("Hider")
Hide:TweenSizeAndPosition(UDim2.new(8.4,0,.8,9), UDim2.new(1,0,Hide.Position.Y.Scale,0), "Out", "Quad", .35, true)
wait(.4)
Hide.Parent:FindFirstChild("Bar").BackgroundColor3 = Color3.new(57/255, 74/255, 97/255)
end
end)
end
end
end
