|
| 11 Sep 2011 11:15 AM |
function onPlayerEntered(newPlayer) print("Leaderboard ball catcher loaded!") local board = Instance.new("IntValue") local a = Instance.new("IntValue") board.Parent = newPlayer a.Parent = baord a.Name = "Spheres Caught" a.Value = 0
end game.Players.ChildAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Sep 2011 11:25 AM |
| Your character loads/Player loads before all of your scripts in Test mode. unless you mean Server Test. |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2011 11:26 AM |
| tools > test > play solo is what I mean |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2011 11:30 AM |
yeah, the your character loads before any of the scripts, so try this instead:
tools>Test>StartServer tools>Test>StarPlayer |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2011 11:32 AM |
| Doesn't work like that either >_<, I even tested it online mode, but it didn't work either! |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 11 Sep 2011 11:34 AM |
function onPlayerEntered(newPlayer) print("Leaderboard ball catcher loaded!") local board = Instance.new("IntValue") local a = Instance.new("IntValue") board.Parent = newPlayer a.Parent = board -- found a slight mispelling :3 a.Name = "Spheres Caught" a.Value = 0
end game.Players.PlayerAdded:connect(onPlayerEntered) -- you can use PlayerAdded as well. |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2011 11:38 AM |
| Still doesn't work online either |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Sep 2011 11:42 AM |
| Fixed it, forgot to name board D: |
|
|
| Report Abuse |
|
|