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 » Scripting Helpers
Home Search
 

Re: Gui Clicked Error

Previous Thread :: Next Thread 
icanxlr8 is not online. 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 is not online. 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 is not online. 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 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
20 Dec 2012 03:01 PM
Nope
Report Abuse
icanxlr8 is not online. icanxlr8
Joined: 25 Feb 2009
Total Posts: 3686
20 Dec 2012 04:49 PM
Bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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