|
| 10 Aug 2015 11:45 AM |
studio: center of screen online: top left corner
wtf? |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
| |
|
| |
|
|
| 10 Aug 2015 12:06 PM |
| What UDIM2 Value do I need to have it at the center? |
|
|
| Report Abuse |
|
|
litalela
|
  |
| Joined: 30 Mar 2010 |
| Total Posts: 6267 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
| |
|