of     1   

PCwiener
#200108Sunday, October 21, 2007 2:01 AM GMT

print("LB LOADED") function onPlayerEntered(newPlayer) local stats = Instance.new("IntValue") stats.Name = "leaderstats" local pnts = Instance.new("IntValue") pnts.Name = "Points" pnts.Value = 0 local gm = Instance.new("IntValue") gm.Name = "Game" gm.Value = 0 pnts.Parent = stats gm.Parent= stats stats.Parent = newPlayer end function onHumanoidDied(humanoid, player) local stats = player:findFirstChild("leaderstats") if stats ~= nil then humanoid= player.Character:findFirstChild("Humanoid") local g = stats:findFirstChild("Game") g.Value = 0 humanoid.Died:connect(function() onHumanoidDied(humanoid, player) end ) end end game.Players.ChildAdded:connect(onPlayerEntered) -------------------------------------- output found nothing...
gamehero
#200165Sunday, October 21, 2007 2:32 AM GMT

I think it's cause there's nothing outside the funtion that tells onHumanoidDied to run, so it wont bring it up in the output. Nor will it work.
PCwiener
#200177Sunday, October 21, 2007 2:37 AM GMT

how do you suggest i fix that? :)
Anaminus
Top 100 Poster
#200373Sunday, October 21, 2007 4:48 AM GMT

print("LB LOADED") function onPlayerEntered(newPlayer) local stats = Instance.new("IntValue") stats.Name = "leaderstats" local pnts = Instance.new("IntValue") pnts.Name = "Points" pnts.Value = 0 local gm = Instance.new("IntValue") gm.Name = "Game" gm.Value = 0 pnts.Parent = stats gm.Parent= stats stats.Parent = newPlayer humanoid.Died:connect(function() onHumanoidDied(humanoid, player) end ) end function onHumanoidDied(humanoid, player) local stats = player:findFirstChild("leaderstats") if stats ~= nil then humanoid= player.Character:findFirstChild("Humanoid") local g = stats:findFirstChild("Game") g.Value = 0 end end game.Players.ChildAdded:connect(onPlayerEntered) ------------------------------------------------------------- You're Died event is in the wrong function. ?-Anaminus-?
sloso
Top 100 Poster
#200504Sunday, October 21, 2007 11:42 AM GMT

Mwhahaha! PCwiener was i need of help then anamuis came
CPRULEZ
Top 100 Poster
#200552Sunday, October 21, 2007 1:04 PM GMT

*sigh* of course Anaminus kno's the script.......... *sigh*
gamehero
#200726Sunday, October 21, 2007 3:20 PM GMT

I knew that part was supposed to go in a different funtion or outside of it, but I didn't think of that... Silly me. XD
PCwiener
#200754Sunday, October 21, 2007 3:34 PM GMT

i think the problem now is the character arrives after the player... i looked at a couple other scripts and tryed to fix it, i failed :). ----------- print("LB LOADED") function onPlayerEntered(newPlayer) local stats = Instance.new("IntValue") stats.Name = "leaderstats" local pnts = Instance.new("IntValue") pnts.Name = "Points" pnts.Value = 0 local gm = Instance.new("IntValue") gm.Name = "Game" gm.Value = 0 pnts.Parent = stats gm.Parent= stats stats.Parent = newPlayer while true do if newPlayer.Character ~= nil then break end wait(5) end humanoid= newPlayer.Character:findFirstChild("Humanoid") Character= newPlayer.Character humanoid.Died:connect(function() onHumanoidDied(humanoid, player) end ) end function onHumanoidDied(humanoid, player) local stats = player:findFirstChild("leaderstats") if stats ~= nil then local g = stats:findFirstChild("Game") g.Value = 0 end end game.Players.ChildAdded:connect(onPlayerEntered)
sloso
Top 100 Poster
#200782Sunday, October 21, 2007 3:47 PM GMT

HAHA i copyed your script!!!!!!!!!!!!!!!!!!!!!!!!!! just kiddin [sloso]
PCwiener
#201117Sunday, October 21, 2007 7:20 PM GMT

lol it doesnt work...
CPRULEZ
Top 100 Poster
#201393Sunday, October 21, 2007 9:04 PM GMT

............huh?
Anaminus
Top 100 Poster
#201684Sunday, October 21, 2007 11:47 PM GMT

humanoid.Died:connect(function() onHumanoidDied(humanoid, player) end ) changes to humanoid.Died:connect(function() onHumanoidDied(humanoid, newPlayer) end ) ?-Anaminus-?
PCwiener
#202983Tuesday, October 23, 2007 12:12 AM GMT

thanks ana, worked like a charm :)
Trollahkiin
#64119233Saturday, March 10, 2012 10:46 PM GMT

haha copied LOL

    of     1