anaso1
|
  |
| Joined: 20 Jun 2011 |
| Total Posts: 2817 |
|
|
| 07 Jun 2014 12:36 PM |
| how do i make a script that like gives me the tools in lightnig |
|
|
| Report Abuse |
|
|
anaso1
|
  |
| Joined: 20 Jun 2011 |
| Total Posts: 2817 |
|
| |
|
Enflare
|
  |
| Joined: 24 Jul 2012 |
| Total Posts: 18522 |
|
|
| 07 Jun 2014 12:39 PM |
WHEN DO YOU WANT THEM???
WHEN YOU SAY SOMETHING??? ALL THE TIME?
ツ [ Enflare | 2453109 ] |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 12:39 PM |
use :clone()
and make that clone's parent a player's backpack
I THINK:
tool = game.Lighting.TOOLNAME:Clone()
tool.Parent = game.Players.LocalPlayer |
|
|
| Report Abuse |
|
|
anaso1
|
  |
| Joined: 20 Jun 2011 |
| Total Posts: 2817 |
|
|
| 07 Jun 2014 12:40 PM |
| any other ways i swear theres one that starts with "for" |
|
|
| Report Abuse |
|
|
Flammus
|
  |
| Joined: 26 Aug 2011 |
| Total Posts: 50727 |
|
| |
|
Enflare
|
  |
| Joined: 24 Jul 2012 |
| Total Posts: 18522 |
|
|
| 07 Jun 2014 12:41 PM |
OKAY
for i,v in pairs (game.Lighting:GetChildren()) do if v:IsA("Tool") then v:clone().Parent = game.Players["anasoNUMBERS IDK THEM"].StarterGear end end
ツ [ Enflare | 5276660 ] |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 12:41 PM |
@anaso;
its like
players = game.Workspace.Players:GetChildren() playerlist = {players} for i = 1, #playerlist do
--what i put above |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 12:42 PM |
I'm not saying you shouldn't post here but if you need help just go to script helpers.
つ ◕_◕ ༽つLET IT GO༼ つ ◕_◕ ༽つ
༼ つ ◕_◕ ༽つLET IT GO༼ つ ◕_◕ ༽つ
༼ つ ◕_◕ ༽つIM ONE WITH THE WIND AND SWORDS༼ つ ◕_◕ ༽つ
|
|
|
| Report Abuse |
|
|
Enflare
|
  |
| Joined: 24 Jul 2012 |
| Total Posts: 18522 |
|
|
| 07 Jun 2014 12:42 PM |
OR IF U WANT ERM SO IT GIVES YOU THEM WHEN AND UR INGAME AND U WANT THEM NOW U SAY
:GIVE ME ALL
ツ [ Enflare | 8410172 ] |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
|
| 07 Jun 2014 12:43 PM |
game.Players.ChildAdded:connect(function(player) shutup = game.Lighting:FindFirstChild("Noob")
shutup:Clone().Parent = player.Backpack end)
if this does not work then screw you i am gunna drink some lemonade |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 12:43 PM |
If you wanted to make it so that when someone touches a brick they get it, you would use this script.
local part = game.Workspace.Part local tool = game.Lighting.Tool
part.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then tool1 = tool:Clone() tool1.Parent = game.Players.LocalPlayer.Backpack end end)
panting |
|
|
| Report Abuse |
|
|
Enflare
|
  |
| Joined: 24 Jul 2012 |
| Total Posts: 18522 |
|
|
| 07 Jun 2014 12:45 PM |
BTW @PERSON WHO SAID U NEED TO GO TO SH
SH WONT HELP BECAUSE THEY SAY "Provide us with a script to debug please, thanks!" THEY WONT >>MAKE U A SCRIPT<<
ツ [ Enflare | 1451554 ] |
|
|
| Report Abuse |
|
|
anaso1
|
  |
| Joined: 20 Jun 2011 |
| Total Posts: 2817 |
|
|
| 07 Jun 2014 12:46 PM |
OKAY FIRST THANKS FOR THE FAST REPLIES
i changed it to replicatedstorage to see all the stuff
for i,v in pairs (game.ReplicatedStorage:GetChildren()) do if v:IsA("Tool") then v:clone().Parent = game.Players["anaso1"].StarterGear end end
BUT IT DIDN'T WORK WHAT I DO |
|
|
| Report Abuse |
|
|
darkwisp
|
  |
| Joined: 07 Apr 2010 |
| Total Posts: 22653 |
|
| |
|
|
| 07 Jun 2014 12:47 PM |
@anaso; players can't access replicatedstorage
it looks blank to them, even if stuff is in there |
|
|
| Report Abuse |
|
|
trituse
|
  |
| Joined: 03 Aug 2011 |
| Total Posts: 15618 |
|
|
| 07 Jun 2014 12:47 PM |
| u put the gear in lighting noob |
|
|
| Report Abuse |
|
|
Enflare
|
  |
| Joined: 24 Jul 2012 |
| Total Posts: 18522 |
|
|
| 07 Jun 2014 12:47 PM |
WAIT ARE YOU INGAME??? IF U WANT IT IN UR BACKPACK NOW SAY
for i,v in pairs (game.ReplicatedStorage:GetChildren()) do if v:IsA("Tool") then v:clone().Parent = game.Players["anaso1"].Backpack --IT MIGHT BE "BackPack" IDK end end
ツ [ Enflare | 7670523 ] |
|
|
| Report Abuse |
|
|
|
| 07 Jun 2014 12:47 PM |
OH WAIT wrong one serverstorage is the one they cant see
idk |
|
|
| Report Abuse |
|
|
Enflare
|
  |
| Joined: 24 Jul 2012 |
| Total Posts: 18522 |
|
|
| 07 Jun 2014 12:48 PM |
ALSO WORKSPACE.LOADSTRINGENABLED IS FALSE SO IF YOU'RE TRYING TO DO :S THEN IT WONT WORK
ツ [ Enflare | 4015038 ] |
|
|
| Report Abuse |
|
|
anaso1
|
  |
| Joined: 20 Jun 2011 |
| Total Posts: 2817 |
|
|
| 07 Jun 2014 12:49 PM |
IT DIDN'T WORK I ALSO TRIED
game:service'Lighting'.TOOL:clone().Parent=game:service'Players'.LocalPlayer.Backpack;
|
|
|
| Report Abuse |
|
|