|
| 03 Jun 2013 08:25 PM |
| This script is supposed to add a value called Laps into the player's model whenever the player spawns or respawns. It never works and there is no output. |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2013 08:26 PM |
whoops forgot the script
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) print("Laps getting added") Laps = Instance.new('NumberValue') Laps.Parent = character Laps.Value = 0 Laps.Name = ("Laps") end) end)
|
|
|
| Report Abuse |
|
|
|
| 03 Jun 2013 08:28 PM |
game.Players.PlayerAdded:connect(funciton(plr) plr.CharacterAdded:connect(function(char) repeat wait() until char:FindFirstChild("Humanoid") Instance.new("NumberValue",char).Name = "Laps" end) end)
If that doesn't work in Offline mode try Online mode. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jun 2013 08:29 PM |
| gnome, yeah he did... Moron. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jun 2013 08:33 PM |
@Ceaseless Soul When i replaced my script with your script output told me this " expected (to close '(' at line 1) near 'plr" but on the bright side my script screwed up so other scripts in my game and now they're working again with yours so your definately closer than i am |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2013 08:35 PM |
| oh you mis spelld function and i copied it into my script |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2013 08:36 PM |
| I fixed it but now I don't have any output and the script doesn't work, just like before |
|
|
| Report Abuse |
|
|
| |
|