|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|