Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Frame doesn't fade it just shows up semi transparent. Any help towards this?

Asked by 4 years ago

So i made a frame and it shows up now but doesn't fade can anybody help me.\ I made the frame visible but the transparency 1 so that you can't see it. When I click my play button it's supposed to show the frame fade. Also, sorry for asking this question too many times, im not new to roblox however still bad at it.

Script:

local black = script.Parent.Parent.Parent.BlackFadingGui.Frame
local playergui = game.Players.LocalPlayer.PlayerGui
script.Parent.MouseButton1Click:Connect(function(player)


black.BackgroundTransparency = 0.1


    -- >> Functioning
for i = 1, 0, 0.1 do
 black.BackgroundTransparency = i -- ensure that you set your iteration so that it will increase/decrease
 wait(0.5)
 -- so essentially the way this script works is that, it'll start by 0, and by every .1 of a second, itll fade to one. so it goes 0, .1, .2, .3, .4, .5 and so on
end
0
1 is the starting point, 2 is where it stops. It may be that it's going down, when Transparency how transparent it is, as it would be Opacity if that wasn't the case. hoyhyo 2 — 4y
0
Exactly I want it to start at 1 so it's completely transparent and end it at 0 so that its not transparent at all trickortreat333444 -6 — 4y
0
I want it to fade in not fade out trickortreat333444 -6 — 4y
0
if you're trying to fade it in, you shouldn't be setting the BackgroundTransparency to 0.1 at the start. jensar141215 157 — 4y

Answer this question