local rp = game:GetService("ReplicatedStorage")
local loadB = rp.HeavyPunch.Load
local ifLoad = false
local gui = game:GetService("StarterGui")
local function loading()
local melee_Basic = script.Parent.Parent
local melee1_Load = melee_Basic.Melee_Power_1.Melee_Power_1_Load
gui.CombatMelee.Melee_Basic.Melee_Power_1.Melee_Power_1_Load.Visible = true
print(melee1_Load.Visible)
print("1")
melee1_Load:TweenSize(UDim2.new(0,0,1,0), "Out", "Linear", 20, true)
melee1_Load.Visible = false
end
while wait(1) do
if loadB.Value == true then
loading()
wait(4)
if loadB.Value == false then
return
end
end
end
So here I have a script, the problem is that the line itself moves,but the visible does not turn on and off. If I print it, it says that visible = false. Here: what is the problem?