|
| 16 Jul 2017 07:43 PM |
| Im trying to change the transparency of a textbox's ################# ## StarterGui, the script is in the gui, this isnt working though, why? local S = game.StarterGui.ScreenGui.Text.S.TextTransparency wait(1) while S <= 0 do wait(0.05) S = S - 0.1 end |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2017 07:44 PM |
| Im trying to change the transparency of a textbox's ### ## StarterGui, the script is in the gui, this isnt working though, why? local S = game.StarterGui.ScreenGui.Text.S.TextTransparency wait(1) while S <= 0 do wait(0.05) S = S - 0.1 end |
|
|
| Report Abuse |
|
|
LaeMVP
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
|
| 16 Jul 2017 07:44 PM |
| When a player joins the game the contents of StarterGui are cloned into the player's PlayerGui, all changing something in StarterGui will do is change it for the next person to join not the current players. |
|
|
| Report Abuse |
|
|
| |
|
gmatch
|
  |
| Joined: 21 May 2014 |
| Total Posts: 1173 |
|
|
| 16 Jul 2017 07:47 PM |
You have to get the StarterGui from the player not the game
Change game.StarterGui to: game.Player.PLAYERNAME.PlayerGui
|
|
|
| Report Abuse |
|
|
|
| 16 Jul 2017 07:49 PM |
| You capitalized PLAYERNAME, do you literally want me to type playername or do I have to insert an actual players name, bc this script is supposed to work for the entire server not just one person |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2017 07:51 PM |
| Actually I think I confused myself, the script is a loading Gui for when a player enters the game, and the code I posted is just for a text appearing if that makes the situation more clear |
|
|
| Report Abuse |
|
|
gmatch
|
  |
| Joined: 21 May 2014 |
| Total Posts: 1173 |
|
|
| 16 Jul 2017 07:54 PM |
| You could use LocalPlayer or a specific player name, If you use a specific name it'll only be used for that specific person. Vice Versa. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2017 07:56 PM |
local S = game.Player.LocalPlayer.PlayerGui.ScreenGui.Text.S.TextTransparency wait(1) while S <= 0 do wait(0.05) S = S - 0.1 end
Like this? |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2017 08:01 PM |
| That script doesnt work when I run it ^^ |
|
|
| Report Abuse |
|
|
gmatch
|
  |
| Joined: 21 May 2014 |
| Total Posts: 1173 |
|
| |
|
|
| 16 Jul 2017 08:34 PM |
| ScreenGui is the name of the Gui that holds the text box |
|
|
| Report Abuse |
|
|
gmatch
|
  |
| Joined: 21 May 2014 |
| Total Posts: 1173 |
|
|
| 16 Jul 2017 08:54 PM |
add my discord ill help you through there
Goat#2976 |
|
|
| Report Abuse |
|
|
BaiYuni
|
  |
| Joined: 09 Oct 2009 |
| Total Posts: 2861 |
|
|
| 16 Jul 2017 08:59 PM |
It's
game.Players.LocalPlayer
not
game.Player.LocalPlayer |
|
|
| Report Abuse |
|
|
gmatch
|
  |
| Joined: 21 May 2014 |
| Total Posts: 1173 |
|
|
| 16 Jul 2017 09:02 PM |
| @Yuni (idk if i spelled that right) he fixed it on the script via discord ;p |
|
|
| Report Abuse |
|
|
BaiYuni
|
  |
| Joined: 09 Oct 2009 |
| Total Posts: 2861 |
|
|
| 16 Jul 2017 09:04 PM |
local S = game.Players.LocalPlayer.ScreenGui.Text.S
wait(1)
while S.TextTransparency <= 0 do wait(0.05) S.TextTransparency = S.TexTransparency - 0.1 end |
|
|
| Report Abuse |
|
|
BaiYuni
|
  |
| Joined: 09 Oct 2009 |
| Total Posts: 2861 |
|
|
| 16 Jul 2017 09:04 PM |
oops
local S = game.Players.LocalPlayer.PlayerGui.ScreenGui.Text.S
wait(1)
while S.TextTransparency <= 0 do wait(0.05) S.TextTransparency = S.TexTransparency - 0.1 end |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2017 10:44 PM |
| Where should the script be placed and should it be a script or a local script? |
|
|
| Report Abuse |
|
|
BaiYuni
|
  |
| Joined: 09 Oct 2009 |
| Total Posts: 2861 |
|
|
| 16 Jul 2017 11:11 PM |
| local script in the screengui? |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2017 11:15 PM |
| Yeah that didnt work I just made an entire new script |
|
|
| Report Abuse |
|
|