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: I need help with ScreenGUI

Previous Thread :: Next Thread 
GloomDrone is not online. GloomDrone
Joined: 09 Aug 2015
Total Posts: 679
10 Aug 2015 11:45 AM
studio: center of screen
online: top left corner

wtf?
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
10 Aug 2015 11:45 AM
use scale not offset
Report Abuse
GloomDrone is not online. GloomDrone
Joined: 09 Aug 2015
Total Posts: 679
10 Aug 2015 11:49 AM
Ill try.
Report Abuse
GloomDrone is not online. GloomDrone
Joined: 09 Aug 2015
Total Posts: 679
10 Aug 2015 12:06 PM
What UDIM2 Value do I need to have it at the center?
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
10 Aug 2015 12:07 PM
{0.5, 0}{0.5, 0}
Report Abuse
GloomDrone is not online. GloomDrone
Joined: 09 Aug 2015
Total Posts: 679
10 Aug 2015 12:18 PM
Thanks.

Okay now I added fading text. It fades in but not out. Help?

while true do
wait(0.01)
script.Parent.TextTransparency = script.Parent.TextTransparency - 0.01
end

wait(30)

while true do
wait(0.01)
script.Parent.TextTransparency = script.Parent.TextTransparency + 0.01
end
Report Abuse
WoolHat is not online. WoolHat
Joined: 19 May 2013
Total Posts: 1873
10 Aug 2015 12:26 PM
Two things: Your transparency script does not have a break in the while true loop. It will continuously subtract transparency from the first while true loop. Add in a break:

local increasing = false

while wait() do
if increasing == false then
script.Parent.TextTransparency = script.Parent.TextTransparency - 0.01
if script.Parent.TextTransparency == 0 then
increasing = true
end
elseif increasing == true then
script.Parent.TextTransparency = script.Parent.TextTransparency + 0.01
if script.Parent.TextTransparency == 1 then
increasing = true
end
end
end

should work.
Second, on your GUI, the top-left of your GUI will be at the center, not the center of the gui. If you have a gui of size {0,100},{0,100}, and you want it centered, your position needs to be: {.5,-50},{.5,-50}
Report Abuse
GloomDrone is not online. GloomDrone
Joined: 09 Aug 2015
Total Posts: 679
10 Aug 2015 12:28 PM
Thanks!
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