So I have a StarterGUI and I want to make it appear when you click the block. Here is what i have so far.
function guibuddy() game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0 wait(3) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.1 wait(0.05) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.2 wait(0.05) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.3 wait(0.05) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.4 wait(0.05) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.5 wait(0.05) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.6 wait(0.05) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.7 wait(0.05) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.8 wait(0.05) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 0.9 wait(0.05) game.StarterGui.shovelbuddy.TextLabel.TextTransparency = 1 wait(0.05) end script.Parent.ClickDetector.MouseClick:Connect(guibuddy)
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?
If you want everyone to see this GUI then you should do
function guibuddy() for i,v in pairs(game.Players:GetChildren()) do -- gets every player in the Game v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0 wait(3) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.1 wait(0.05) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.2 wait(0.05) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.3 wait(0.05) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.4 wait(0.05) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.5 wait(0.05) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.6 wait(0.05) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.7 wait(0.05) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.8 wait(0.05) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 0.9 wait(0.05) v.PlayerGui.shovelbuddy.TextLabel.TextTransparency = 1 wait(0.05) end script.Parent.ClickDetector.MouseClick:Connect(guibuddy)
I believe its the answer not really sure but try anyway