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: tool making

Previous Thread :: Next Thread 
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
24 Jul 2011 12:10 PM
i get things like:

function onClick(mouse)

but i dont know any listeners.
can some1 help with a example?
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
24 Jul 2011 12:14 PM
bump
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
25 Jul 2011 10:42 PM
bump again
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
25 Jul 2011 10:55 PM
bumbity bum bum BUMP!
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
28 Jul 2011 11:26 PM
bump = true

function bumb(post
if bump == true then
post 'bumped'
end
end

bump()
Report Abuse
darksoul4930 is not online. darksoul4930
Joined: 29 Feb 2008
Total Posts: 472
28 Jul 2011 11:30 PM
Here is a .touch example. :)

function t(hit)

end
script.Parent.Touch:connect(t)

Here is an anonymous function

script.Parent.Touched:connect(function(hit)

end)

There are two examples. :)
Report Abuse
RawrBot is not online. RawrBot
Joined: 22 Aug 2008
Total Posts: 832
28 Jul 2011 11:35 PM
If you want a tool to do something when you click, insert a normal script in the tool like this:

--No-name functions are more efficient

tool.Activated:connect(function()
print("Mouse has clicked")
end)

tool.Unequipped:connect(function()

print("Unequipped")

end)

I'm not sure, just try around. Look in free models. (Btw, LocalScripts in tools are to control the mouse and keys, like change the icon) Search mouse in the wiki.
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