|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 13 Aug 2015 02:30 PM |
Doesn't work still.
Falcons for Life |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 13 Aug 2015 02:40 PM |
got it, thank you :)
Falcons for Life |
|
|
| Report Abuse |
|
|