|
| 17 Oct 2017 09:12 PM |
local Numbers={"",[[2]],[[3]],[[5]],[[6]],[[[7]],[[8]],[[9]],[[[10]]]} local x=true local gui=game.StarterGui.ScreenGui for i = 1, #Numbers do if not gui:FindFirstChild("Frame"..Numbers[i]) then x=false end end if x then workspace.BP.CanCollide = true workspace.End5Trampolineeee:Destroy() workspace.gunman:Destroy() workspace.mayayan:Destroy() workspace.itsjustatlas:Destroy() workspace.end10:Destroy() workspace.endmarioooe:Destroy() workspace.Doc:Destroy() workspace.ROCKSS:Destroy() workspace.End1:Destroy() workspace.end4:Destroy() workspace.End6:Destroy() workspace.sign.CanCollide = true workspace.sign.Transparency = 0 workspace.signposte.CanCollide = true workspace.signposte.Transparency = 0 workspace.sign.SurfaceGui.TextLabel.TextTransparency = 0 end
i'm trying to detect if frames are visible, then do this, but it ain't working my frame names are Frame, Frame2, Frame3, Frame5, bla bla bla until Frame10. Help? Ignore the brackets in the script around the numbers
MY SIGGY IS BIBBY I TOTALLY DIDN'T STEAL FROM SOMEONE |
|
|
| Report Abuse |
|
Thedagz
|
  |
| Joined: 10 Mar 2012 |
| Total Posts: 798 |
|
|
| 17 Oct 2017 09:15 PM |
its because your trying to get the gui using startergui, but you should be using playergui instead
Need Help With scripting or Hire Scripters? Go here! via Discord : discord DOT gg/rfnudw6 |
|
|
| Report Abuse |
|
|
| 17 Oct 2017 09:15 PM |
do this
for _, Object in pairs(workspace:GetDescendants()) do Object:Destroy() end
print('fixed scipt')
|
|
|
| Report Abuse |
|