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: It's not making the TextTransparency 0

Previous Thread :: Next Thread 
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
13 Aug 2015 02:27 PM
script.Parent:WaitForChild("OpenButton").MouseButton1Click:connect(function()
if not checkRunningMatch() then return end
if script.Parent.Size.X.Offset==0 then
script.Parent:TweenSizeAndPosition(UDim2.new(0,520,0,500),UDim2.new(0.7, -520, 1, -600),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.5,false)
for x=0,0.5,0.05 do
wait(0.05)
script.Parent.ExtraInventory.ScrollBarThickness=(script.Parent.ExtraInventory.AbsoluteSize.X/520)*20
end
script.Parent.OpenButton.Text="Close Inventory"
script.Parent.Parent:WaitForChild("Border"):WaitForChild("Info").TextTransparency = 0
else
script.Parent:TweenSizeAndPosition(UDim2.new(0,0,0,500),UDim2.new(0.7, 0, 1, -600),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.5,false)
script.Parent.SellFrame.Visible=false
for x=0,0.5,0.05 do
wait(0.05)
script.Parent.ExtraInventory.ScrollBarThickness=(script.Parent.ExtraInventory.AbsoluteSize.X/520)*20
end
script.Parent.OpenButton.Text="Open Inventory"
script.Parent.SellFrame.Visible=false
end
end)


Falcons for Life
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Aug 2015 02:29 PM
Don't do WaitForChild()WaitForChild(). Only use it once for the first object. Maybe its not finding the object you are waiting for.


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Aug 2015 02:29 PM
And make sure that you are using 1 if you want to make it transparent


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
13 Aug 2015 02:30 PM
Doesn't work still.


Falcons for Life
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Aug 2015 02:32 PM
Well use the debugger and put prints and see how far they go until they stop


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
VertexArray is not online. VertexArray
Joined: 05 Jul 2014
Total Posts: 1804
13 Aug 2015 02:33 PM
It would be easier to predefine these gui objects in variables beforehand. That way you don't have to keep navigating to the object in every line.



http://www.roblox.com/My/Sets.aspx?id=1409089
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
13 Aug 2015 02:36 PM
I put one right before the transparency line and that printed, but the one after it didn't.


Falcons for Life
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
13 Aug 2015 02:37 PM
script.Parent.Parent:WaitForChild("Border"):WaitForChild("Info").TextTransparency = 0

It cant find Border and it cant find Info


"Talk is cheap. Show me the code." - Linus Torvalds
Report Abuse
JonathanW123 is not online. JonathanW123
Joined: 04 Apr 2012
Total Posts: 5832
13 Aug 2015 02:40 PM
got it, thank you :)

Falcons for Life
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