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
 

Give sword

Previous Thread :: Next Thread 
LucidSounds is not online. LucidSounds
Joined: 08 Sep 2012
Total Posts: 5
04 Jun 2017 04:29 PM
I need a way to be able to give someone a sword when they step on an object
Report Abuse
LucidSounds is not online. LucidSounds
Joined: 08 Sep 2012
Total Posts: 5
04 Jun 2017 04:30 PM
Any help would be great.
Report Abuse
Julian_Orteil is not online. Julian_Orteil
Joined: 14 Aug 2012
Total Posts: 968
04 Jun 2017 04:32 PM
I won't write the code for you because otherwise you won't learn anything.

Steps:

1. Use the .Touched event with the "Hit" value passed
2. Check for the humanoid
3. Get the Player from the character using "GetPlayerFromCharacter"
4. Clone the sword from wherever it is stored to the player's backpack


All of the above stuff can be found very simply in the wiki.


Sometimes, it's the people no one imagines anything of, who do the things that no one can imagine.
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