leomesa
|
  |
| Joined: 11 Apr 2014 |
| Total Posts: 1029 |
|
|
| 15 Jul 2016 12:28 AM |
How can i go by getting a players back in a server script in serverscript service while having FE enabled?
|
|
|
| Report Abuse |
|
|
|
| 15 Jul 2016 12:29 AM |
| Game.Players:GetChildren() |
|
|
| Report Abuse |
|
|
leomesa
|
  |
| Joined: 11 Apr 2014 |
| Total Posts: 1029 |
|
|
| 15 Jul 2016 12:30 AM |
| sure but what If I wanted to get a player individually and clone something into "that" player. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2016 12:32 AM |
local Clone = Weapon:Clone() Clone.Parent = game.Players[Player Name].Backpack |
|
|
| Report Abuse |
|
|
leomesa
|
  |
| Joined: 11 Apr 2014 |
| Total Posts: 1029 |
|
|
| 15 Jul 2016 12:33 AM |
| Would I have to put a name in there? Or will it just run locally for every player? |
|
|
| Report Abuse |
|
|
leomesa
|
  |
| Joined: 11 Apr 2014 |
| Total Posts: 1029 |
|
|
| 15 Jul 2016 12:34 AM |
| Lets just say the weapon was inside the player. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2016 12:35 AM |
Put a name but if you want it to happen to every player then just:
Local Players = game.Players:GetChildren()
For _, Player in pairs(Players) do Weapons:Clone().Parent = Player.Backpack End |
|
|
| Report Abuse |
|
|
leomesa
|
  |
| Joined: 11 Apr 2014 |
| Total Posts: 1029 |
|
|
| 15 Jul 2016 12:37 AM |
| Alright Thanks! But lets say I had a folder in every player called PlayerStuff and inside that their was a weapon they equipped will that method help me clone that weapon from inside their player to their backpack? |
|
|
| Report Abuse |
|
|
| |
|
leomesa
|
  |
| Joined: 11 Apr 2014 |
| Total Posts: 1029 |
|
| |
|
leomesa
|
  |
| Joined: 11 Apr 2014 |
| Total Posts: 1029 |
|
|
| 15 Jul 2016 12:42 AM |
Wait it doesn't work on the server
This is the script:
local Weapon = p[i]:WaitForChild('PlayerStuff').EquippedContent:WaitForChild('EquipedWep') local Players = game.Players:GetChildren() for _, Player in pairs(Players) do Weapon.Value:Clone().Parent = Player.Backpack end
|
|
|
| Report Abuse |
|
|
leomesa
|
  |
| Joined: 11 Apr 2014 |
| Total Posts: 1029 |
|
| |
|