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: TextButton uneven

Previous Thread :: Next Thread 
yhatayhatahoohoo is not online. yhatayhatahoohoo
Joined: 19 Jan 2011
Total Posts: 1988
11 Aug 2016 09:34 AM
Hello! I have a problem with a TextButton. I have a TextButton script that fades out an ImageLabel when you click it. But, whenever I try to make the TextButton to a new position, it moves the image too. Here's the script:


function onClicked ()
for i = 0, 1, .1 do
script.Parent.Picture.ImageTransparency=i
wait(.05)
end
script.Parent.Start:Remove()
script.Parent.Picture:Remove()
script.Parent.Parent.Parent:Destroy ()
end

script.Parent.MouseButton1Click:connect(onClicked)


Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
11 Aug 2016 09:42 AM
Dont make the image a child of the TextButton
Change its location to Maybe just inside the ScreenGui not the TextButton


Report Abuse
yhatayhatahoohoo is not online. yhatayhatahoohoo
Joined: 19 Jan 2011
Total Posts: 1988
11 Aug 2016 09:56 AM
I tried that but it says picture is not a valid member of text button
Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
11 Aug 2016 10:02 AM
Yes it says that because you moved it...
So now you change the script.Parent.Picture.ImageTransparency=i
accordingly to where the picture is.


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