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
 

Re: Not working?

Previous Thread :: Next Thread 
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
02 Dec 2014 04:09 PM
tool = script.Parent
halt = false

function onButton1Down(mouse)
local hit = mouse.Target
if (hit == nil) or (halt == true) then return end
halt = true

if (hit.Name == "Item") then
hit:remove()

mouse.Button1Down:connect(function()
onButton1Down(mouse) end)
end
end
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
02 Dec 2014 04:12 PM
bump
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
02 Dec 2014 04:15 PM
Think very carefully about where you are placing your ends.
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
02 Dec 2014 04:15 PM
twice
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
02 Dec 2014 04:20 PM
Still nothing
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
02 Dec 2014 04:24 PM
Haaalp :(
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
02 Dec 2014 04:24 PM
And end's sole purpose is to define the end of the scope.

Also, you need to connect or call the function from OUTSIDE of the scope.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Dec 2014 04:27 PM
That is some of the most nuclear code I've seen to date
And yet somehow not the worst
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
02 Dec 2014 04:31 PM
How would I fix this though?
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
02 Dec 2014 04:34 PM
--Changed to this.. still not working

tool = script.Parent
halt = false

function onButton1Down(mouse)
local hit = mouse.Target
if (hit == nil) or (halt == true) then return end
halt = true

if (hit.Name == "Item") then
hit:remove()

end
end

onButton1Down:connect(function(mouse) end)
Report Abuse
yankeejr is not online. yankeejr
Joined: 04 Jul 2012
Total Posts: 4906
02 Dec 2014 04:55 PM
Bump!
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