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

Click Detector not bringing up GUI?

Asked by
Stycon 30
6 years ago

So I have a StarterGUI and I want to make it appear when you click the block. Here is what i have so far.

01function guibuddy()
02game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0
03wait(3)
04game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.1
05wait(0.05)
06game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.2
07wait(0.05)
08game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.3
09wait(0.05)
10game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.4
11wait(0.05)
12game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.5
13wait(0.05)
14game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.6
15wait(0.05)
View all 26 lines...

TextLabel is the GUI I want to appear and here is the TextLabel's beginning stats; active: false anchorpoint: 0,0 BGtransparency: 1 borderpixelwidth: 0 layoutorder:0 parent: shovelbuddy visible: true textscaled: true textTransparency: 1 textstroketransparency: 1 by the way, the screenGUI is enabled as well. In the UI editor, everything looked fine and it should have gone well. Any ideas?

0
Its game.Players.LocalPlayer.PlayerGui WillBe_Stoped 71 — 6y
0
if its a local script. If not then use a for i,v loop. WillBe_Stoped 71 — 6y
0
Ok, but it is a regular script and it is under a brick in Workspace. Stycon 30 — 6y
0
lemme post answer. I'm not that good but ima try. WillBe_Stoped 71 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

If you want everyone to see this GUI then you should do

01function guibuddy()
02for i,v in pairs(game.Players:GetChildren()) do -- gets every player in the Game
03v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0
04wait(3)
05v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.1
06wait(0.05)
07v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.2
08wait(0.05)
09v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.3
10wait(0.05)
11v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.4
12wait(0.05)
13v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.5
14wait(0.05)
15v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.6
View all 27 lines...

I believe its the answer not really sure but try anyway

0
This is going to be a single player game anyway. Ill try and see if it works Stycon 30 — 6y
0
oooff alr i mean it should work. But it might cause some lag. If u want me to make another one ask WillBe_Stoped 71 — 6y
0
YES IT WORKED! Thanks WillBe_Stopped! Stycon 30 — 6y
0
Consider using a loop MadWorlds 84 — 6y
0
no pr0blem WillBe_Stoped 71 — 6y
Ad

Answer this question