icanxlr8
|
  |
| Joined: 25 Feb 2009 |
| Total Posts: 3686 |
|
|
| 18 Dec 2012 04:09 PM |
My Gui isn't working, and it is in a localscript, please tell me if you notice an error.
a = script.Parent.a b = script.Parent.b c = script.Parent.c admins = {"icaanxlr8","icanxlr8","Buster242","Player1"} while true do if script.Parent.Parent.Parent.Parent.Parent:findFirstChild("Character") then -- Fixed. for i = 1, #admins do if script.Parent.Parent.Parent.Parent.Name == admins[i] then print 'Admin' else script.Parent.Parent:Remove() -- Edit this bit. Lol end end end wait(0.00001) end
function remove() if game.Workspace:FindFirstChild("Obstacles") then game.Workspace.Obstacles:Remove() end if game.Workspace:FindFirstChild("Hills") then game.Workspace.Hills:Remove() end end
a.MouseButton1Down:connect(function() remove() end)
b.MouseButton1Down:connect(function() remove() game.Lighting.Hills:Clone().Parent = game.Workspace end)
c.MouseButton1Down:connect(function() remove() game.Lighting.Obstacles:Clone().Parent = game.Workspace end) |
|
|
| Report Abuse |
|
|
icanxlr8
|
  |
| Joined: 25 Feb 2009 |
| Total Posts: 3686 |
|
|
| 18 Dec 2012 04:28 PM |
| Oops! Ignore the --Edit this part. I've had this corrected before. |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 18 Dec 2012 04:31 PM |
function remove() if game.Workspace:FindFirstChild("Obstacles") then game.Workspace.Obstacles:Remove() elseif game.Workspace:FindFirstChild("Hills") then game.Workspace.Hills:Remove() end end end |
|
|
| Report Abuse |
|
|
icanxlr8
|
  |
| Joined: 25 Feb 2009 |
| Total Posts: 3686 |
|
| |
|
icanxlr8
|
  |
| Joined: 25 Feb 2009 |
| Total Posts: 3686 |
|
| |
|