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

How would I go about this?

Asked by
xxCHLOE 10
10 years ago

Ok, so basically, this is what I have.

In ServerStorage, I have a BoolValue that is set to false. Whenever you click a button which causes a Gui to close, the BoolValue is set to true. That is already working for me.

But, I have another matter to deal with.

I want to open another Gui whenever this one closes, which will open whenever the BoolValue in ServerStorage is set to true.

This is basically going to mean that whenever it sees that the BoolValue in ServerStorage is true, the Frame and TextLabel will become Visible, and then the BackgroundTransparency and TextTransparency will decrement 0.1 every 0.1 seconds until both reach 0, wait for 3 seconds, and then the BackgroundTransparency and TextTransparency will increment by 0.1 every 0.1 seconds until both reach 1, and then will set a new BoolValue to true.

How would I go about the BoolValue thing?

1 answer

Log in to vote
3
Answered by 10 years ago
game.ServerStorage.BoolName.Changed:connect(function()  --Called whenever the value is changed.
if game.ServerStorage.BoolName == true then --If its set to true like how you want it passes.
Frame.Transparency = 1
TextLabel.TextTransparency = 1
Frame.Visible = true
TextLabel.Visible = true
for i = 1, 10 do --Slowly makes the Frame and Text visible
Frame.BackgroundTransparency = Frame.BackgroundTransparency - 0.1
TextLabel.TextTransparency = TextLabel.TextTransparency - 0.1
wait(0.1)
end
end
end)
0
it doesn't seem to work for me, after I have defined TextLabel and Frame above xxCHLOE 10 — 10y
0
You have to change BoolName, and all that of that first so it'll work correctly. xImmortalChaos 565 — 10y
0
I already changed BoolName to it's true name Val1, defined Frame and TextLabel, and fixed "Frame.Transparency" to "Frame.BackgroundTransparency" xxCHLOE 10 — 10y
0
Then try some debugging add some prints. xImmortalChaos 565 — 10y
View all comments (2 more)
0
I fixed it by changing the second line, adding ".Value" to it xxCHLOE 10 — 10y
0
OH, Yeah I'm sorry that i missed that. :l xImmortalChaos 565 — 10y
Ad

Answer this question