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
 

hopperbin not detecting click???? WHAT?!

Previous Thread :: Next Thread 
FunkiAndrew is not online. FunkiAndrew
Joined: 01 Dec 2013
Total Posts: 2318
11 Mar 2015 08:27 AM
clicked = false
function onButton1Down(mouse)
if clicked == false then
clicked = true
print ('Fire!')

function onSelected(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end;

script.Parent.Selected:connect(onSelected)


I click, and, no output... I don't know why.
Report Abuse
lucas200206 is not online. lucas200206
Joined: 06 Dec 2009
Total Posts: 899
11 Mar 2015 08:59 AM
Are you trying to use a normal script inside a hopperbin? Sorry bro, but that's not how it works.
Report Abuse
noobkiller3759 is not online. noobkiller3759
Joined: 04 Feb 2010
Total Posts: 85
11 Mar 2015 11:13 AM
clicked = false
function onButton1Down(mouse)
if clicked == false then
clicked = true
print ('Fire!')
end
end
function onSelected(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

script.Parent.Selected:connect(onSelected)

And use LocalScript
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