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: Could you force an event by using an event?

Previous Thread :: Next Thread 
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
22 Nov 2012 12:19 PM
For example:

mouse.KeyDown:connect(function(key)
if key == "e" then
tool.Equipped()


Tactical Rainboom Inbound
Report Abuse
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
22 Nov 2012 12:19 PM
--Forgot the ends :(
end
end)


--Waiting for floodcheck.... Floodcheck wait complete.

Tactical Rainboom Inbound
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
22 Nov 2012 12:43 PM
Reparenting a Tool to the Player's Character will equip the tool.
Report Abuse
1cooldude361 is not online. 1cooldude361
Joined: 13 Mar 2010
Total Posts: 4403
22 Nov 2012 01:09 PM
@Scar Yeah, I realized that after a bit, but that still doesn't answer my question.

Tactical Rainboom Inbound
Report Abuse
doombringer42 is not online. doombringer42
Joined: 13 Nov 2007
Total Posts: 5445
22 Nov 2012 01:12 PM
You mean force-trigger the event? I suppose you could create a BindableEvent and connect stuff to it, but I don't think you can do what you want with events.

¬ SHG Scripter Tier-2 ♣ LuaLearners Elite
Report Abuse
sharps222 is not online. sharps222
Joined: 09 Dec 2010
Total Posts: 117
22 Nov 2012 01:12 PM
It should work, I just never knew you could use tool.Equiped() to equip a tool, I just usually parent the tool to the character causing it to select.
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