script.Parent.MouseButton1Click:Connect(function()
local function FadeIn()
for i = 1, 0, 0.02 do
wait(0.02)
script.Parent.Parent.Parent.Fade.load2.Transparency = i
end
script.Parent.Parent.Parent.Fade.load2.Transparency = 0
end
local function FadeOut()
for i = 0, 1, 0.02 do
wait(0.02)
script.Parent.Parent.Parent.Fade.load2.Transparency = i
end
script.Parent.Parent.Parent.Fade.load2.Transparency = 1
end
end)
You didnt call the function, i would recommend reading the docs
@CZXPEK is right, but also, maybe try TweenService, as it provides more flexibility, unless it doesn’t work for this case.
ill try that and come back if ti works or not
i seem to realize that you’re creating this wrong, actually functions are not supposed to be inside events and that is unnecessary as there is already a syntax called else if you’re clicking on buttons twice.
also I’ve saw your previous topic but are you trying to tween ScreenGUI?? i wasn’t sure how what and what is parented as there is no variables here.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.