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 » Scripters
Home Search
 

ClickDetector

Previous Thread :: Next Thread 
Nagrath99 is not online. Nagrath99
Joined: 26 Mar 2011
Total Posts: 1537
05 Feb 2015 05:52 PM
My click detector is not working and I feel like an idiot because I'm clearly missing something obvious.

Part
>ClickDetector
>Script

Script:
local Used = false
function Clicked(player)
print("Clicked")
if Used == true then return end
Used = true
script.Parent:Destroy()
end
script.Parent:WaitForChild("ClickDetector").MouseClick:connect(Clicked)




Nothing happens and I get no error.
Yes, I have the mouse cursor change to show that you can click it. I can click it but it's not doing anything.
Report Abuse
Nagrath99 is not online. Nagrath99
Joined: 26 Mar 2011
Total Posts: 1537
05 Feb 2015 06:03 PM
b
Report Abuse
CUBES4LIFE is not online. CUBES4LIFE
Joined: 22 Jun 2009
Total Posts: 4956
05 Feb 2015 06:06 PM
Works for me
Report Abuse
Nagrath99 is not online. Nagrath99
Joined: 26 Mar 2011
Total Posts: 1537
05 Feb 2015 06:07 PM
It's not working in Online or in Server mode.
Report Abuse
CUBES4LIFE is not online. CUBES4LIFE
Joined: 22 Jun 2009
Total Posts: 4956
05 Feb 2015 06:09 PM
http://www.roblox.com/Cubes4Lifes-Place-Number-51-place?id=166286506
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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