|
| 01 Nov 2013 09:38 PM |
Ok so im trying to make it so all the text buttons out side of the frame disappear but it makes all the text buttons disappear. here is my script :).
guis = {} Frame = script.Parent for a,b in pairs(Frame:GetChildren()) do if b.ClassName == "TextButton" then table.insert(guis,b) end end
while wait(0.1) do for a,b in pairs(guis) do FrameButtom = Frame.Position.X.Offset+Frame.Size.X.Offset FrameTop = Frame.Position.X.Offset bTop = b.Position.X.Offset bButtom = b.Position.X.Offset + b.Size.X.Offset if bTop > FrameButtom or bButtom < FrameTop then coroutine.resume(coroutine.create(function() for c,d in pairs(b:GetChildren()) do wait(0.05) d.Visible = false end end)) else coroutine.resume(coroutine.create(function() for c,d in pairs(b:GetChildren()) do wait(0.05) d.Visible = true end end)) end end end |
|
|
| Report Abuse |
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 01 Nov 2013 09:39 PM |
| if object.Position.Scale>1 or object.Position.Scale<0 then object.BackgroundTransparency=1 |
|
|
| Report Abuse |
|
| |
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
| |