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: [Requesting script]

Previous Thread :: Next Thread 
DeadlyShroom is not online. DeadlyShroom
Joined: 14 Mar 2013
Total Posts: 206
08 Dec 2013 10:02 PM
i want this script to give the gear to everyone ingame i use to have it but not anymore ;-;

b = game:GetService("InsertService"):LoadAsset(95951330) b.Parent = game.Workspace b:MakeJoints() b:MoveTo(game.Players.DeadlyShroom.Character.Torso.Position)
Report Abuse
Wakarimasu is not online. Wakarimasu
Joined: 12 Nov 2013
Total Posts: 1448
08 Dec 2013 11:08 PM
Use a for loop. Just mash this in with what you have

local p = game.Players:GetChildren() -- local probably not necessary
for i=1, #p do
local b = p:findFirstChild('Backpack')
whatever the gear is:Clone().Parent = b
end
Report Abuse
DeadlyShroom is not online. DeadlyShroom
Joined: 14 Mar 2013
Total Posts: 206
09 Dec 2013 06:22 AM
didn't work :[
Report Abuse
Wakarimasu is not online. Wakarimasu
Joined: 12 Nov 2013
Total Posts: 1448
09 Dec 2013 08:13 AM
Did you actually try or did you just throw what I gave you into it? You have to edit it.
Report Abuse
Wakarimasu is not online. Wakarimasu
Joined: 12 Nov 2013
Total Posts: 1448
09 Dec 2013 08:14 AM
for _, v in pairs(game.Players:GetChildren()) do
if v['Backpack'] then
gear_here_please:Clone().Parent = v.Backpack
else
end
end

That's a little more simple
Report Abuse
DeadlyShroom is not online. DeadlyShroom
Joined: 14 Mar 2013
Total Posts: 206
10 Dec 2013 08:01 PM
I want it to be an id of a gear not a script... i put an id where said gear here please ... i want it to be an id of a gear so it's more easy/short for script builder
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