generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why doesnt the transparency change?

Previous Thread :: Next Thread 
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
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
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
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 is online. 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
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
16 Jul 2017 07:45 PM
..So how do I fix it?
Report Abuse
gmatch is not online. 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
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
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
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
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 is not online. 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
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
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
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
16 Jul 2017 08:01 PM
That script doesnt work when I run it ^^
Report Abuse
gmatch is not online. gmatch
Joined: 21 May 2014
Total Posts: 1173
16 Jul 2017 08:13 PM
remove "ScreenGui" lmao
Report Abuse
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
16 Jul 2017 08:34 PM
ScreenGui is the name of the Gui that holds the text box
Report Abuse
gmatch is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
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 is not online. BaiYuni
Joined: 09 Oct 2009
Total Posts: 2861
16 Jul 2017 11:11 PM
local script in the screengui?
Report Abuse
DemonicSolest is not online. DemonicSolest
Joined: 13 Oct 2014
Total Posts: 73
16 Jul 2017 11:15 PM
Yeah that didnt work I just made an entire new script
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image