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: Equip player with sword

Previous Thread :: Next Thread 
deadlyfox43110 is not online. deadlyfox43110
Joined: 09 Oct 2009
Total Posts: 1823
11 Dec 2015 06:44 PM
How can I use a script to put a gear in the player's inventory and then automatically equip it?
Report Abuse
greedyawesomeman is not online. greedyawesomeman
Joined: 18 Apr 2010
Total Posts: 1038
11 Dec 2015 06:48 PM
You'd clone your tool into the players backpack(located within their player, not their character). I don't know exactly how to force the equip.
Report Abuse
NecroBumpism is not online. NecroBumpism
Joined: 25 Nov 2015
Total Posts: 534
11 Dec 2015 06:48 PM
EquipTool()
Report Abuse
deadlyfox43110 is not online. deadlyfox43110
Joined: 09 Oct 2009
Total Posts: 1823
11 Dec 2015 06:52 PM
where can I find the classic roblox sword?

I seem to be having trouble, can't even find it in the catalog.
Report Abuse
deadlyfox43110 is not online. deadlyfox43110
Joined: 09 Oct 2009
Total Posts: 1823
11 Dec 2015 06:53 PM
Ah, finally found it
Report Abuse
deadlyfox43110 is not online. deadlyfox43110
Joined: 09 Oct 2009
Total Posts: 1823
11 Dec 2015 07:07 PM
How would I make sure it goes into all Players' backpacks
Report Abuse
greedyawesomeman is not online. greedyawesomeman
Joined: 18 Apr 2010
Total Posts: 1038
11 Dec 2015 07:09 PM
Put into starterpack, no scripting required!
Report Abuse
deadlyfox43110 is not online. deadlyfox43110
Joined: 09 Oct 2009
Total Posts: 1823
11 Dec 2015 07:09 PM
But I want it to happen when they teleport to an area.
Report Abuse
greedyawesomeman is not online. greedyawesomeman
Joined: 18 Apr 2010
Total Posts: 1038
11 Dec 2015 07:36 PM
Put the players into a table, loop through the table and find their backpacks and put it in. To remove either kill them or loop thru and remove.
Report Abuse
deadlyfox43110 is not online. deadlyfox43110
Joined: 09 Oct 2009
Total Posts: 1823
11 Dec 2015 07:37 PM
I started doing that but I don't know the for loop in Lua
The things I've tried haven't worked
Report Abuse
greedyawesomeman is not online. greedyawesomeman
Joined: 18 Apr 2010
Total Posts: 1038
11 Dec 2015 08:01 PM
for index, variable in pairs(game.Worksapce:GetChildren()) do
print(variable.Name)
end

this would print the names of everything in workspace.
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