gerit99
|
  |
| Joined: 21 Jul 2010 |
| Total Posts: 521 |
|
|
| 27 Jan 2013 02:37 PM |
I have this code, and I can not check if it is right on ANY way. The whole script works in solo, because the name of a player is Player1. But in Server, it doesn't work. (It needs a local script, because I mess with the camera) ------------------------------------------------------------------ if player.Name ~= "Player1" then player:WaitForDataReady() if player:LoadInstance("Chars") ~= nil then local chars = player:LoadInstance("Chars")
local a = chars:GetChildren() for i=1,#a do a[i]:clone().Parent = player.Chars end end end -------------------------------------------------------------------- |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 02:40 PM |
You could use local player = Game.Players.LocalPlayer in a local script |
|
|
| Report Abuse |
|
|
gerit99
|
  |
| Joined: 21 Jul 2010 |
| Total Posts: 521 |
|
| |
|
|
| 27 Jan 2013 02:41 PM |
| Localscripts don't work with DP. |
|
|
| Report Abuse |
|
|
gerit99
|
  |
| Joined: 21 Jul 2010 |
| Total Posts: 521 |
|
|
| 27 Jan 2013 02:41 PM |
| This is the part of the code when you click a button that is wrong. |
|
|
| Report Abuse |
|
|
gerit99
|
  |
| Joined: 21 Jul 2010 |
| Total Posts: 521 |
|
|
| 27 Jan 2013 02:44 PM |
| Thanks. I'll see if it works. |
|
|
| Report Abuse |
|
|
gerit99
|
  |
| Joined: 21 Jul 2010 |
| Total Posts: 521 |
|
|
| 27 Jan 2013 02:51 PM |
| I can't test due the HPResult bug. |
|
|
| Report Abuse |
|
|
|
| 27 Jan 2013 02:52 PM |
| The first line needs a ~== I think, not a ~=. I think that is what's happening with the Player1. I'm not a really good scripter, so what I suggest may not be right. |
|
|
| Report Abuse |
|
|
gerit99
|
  |
| Joined: 21 Jul 2010 |
| Total Posts: 521 |
|
|
| 27 Jan 2013 03:01 PM |
| No? And btw, if I include that it works on Player1, because then it doesn't load. |
|
|
| Report Abuse |
|
|