|
| 08 Mar 2015 08:17 PM |
game.Players.PlayerAdded:connect(function(plr) local val=Instance.new("NumberValue", plr) val.Value=325 local vall=Instance.new("BoolValue",plr) vall.Value=false vall.Name="test" end)
so for some reason this only adds values for me when I join my game, i don't really understand but it doesn't add it for every person who joins my game and I can't figure out why. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:18 PM |
plz space out your equal signs thx.
and have you tested it
|
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:18 PM |
| what do ya think give me your best guess |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:19 PM |
| Is there an error in the dev console? |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 08 Mar 2015 08:19 PM |
| it looks perfectly fine... are you sure it doesn't add it for everyone? |
|
|
| Report Abuse |
|
|
| |
|
|
| 08 Mar 2015 08:20 PM |
I see no problems with the code (it's ugly but that's different).
Could be another script disabling this?
|
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:21 PM |
| in fact cntkillme can you follow me since I think i fixed it |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 08 Mar 2015 08:22 PM |
| Start Server -> Start 2 Players :) |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:22 PM |
Or it could be the script that is accessing the values that is the problem. If that is the case, then no, you are not sure.
Maybe the script trying to access it is sandboxed, but the sandbox doesn't set up properly until the second player joins. :D I mean, this is obviously the problem. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:23 PM |
| the script that accesses it is a localscript and it says that vall or val is not a valid member of player so pretty sure jarod. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:26 PM |
| give code or I report u to my brother (my brother is an admin on his game with kohl's admin and he will ban u) |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:26 PM |
| That's a whole different issue. What you're supposed to do is check yourself to see if these values are created. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:27 PM |
| You never set the name of the first object geez. |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2015 08:27 PM |
| good thing i have anti koel xdxd |
|
|
| Report Abuse |
|
|