of     1   

mambo99
#35063583Thursday, October 07, 2010 11:32 PM GMT

function onPlayerDied() if player.TeamColor = "Bright red" then Player.TeamColor = "White" end end --------------------------------------------------------- function onPlayerDied() if script.Parent:findFirstKillerIfStillInGame.TeamColor = "Brown" then Killer.TeamColor = "Bright red" wait(2) Killer.Character:BreakJoints() end end Neither script is working.
Spectrumw
#35063697Thursday, October 07, 2010 11:33 PM GMT

You never callled the function -.-
crazypotato4
#35063790Thursday, October 07, 2010 11:34 PM GMT

and findFirstKillerIfStillInGame is not a RBX.Lua function, and even if it were, you never called any arguments.
Spectrumw
#35063931Thursday, October 07, 2010 11:36 PM GMT

And in the if statement, you just wrote one '=' when you actually need two.
Swordphin123
#35064075Thursday, October 07, 2010 11:38 PM GMT

Put this script into Workspace: ~~~~ game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(char) if script:findFirstChild("Switcher") ~= nil then script.Switcher:clone().Parent = char wait() end end) end) ~~~~ Then put THIS script into THAT script and name it "Switcher" without the quotes ~~~~ color = "DA COLOR YOU WANNA CHANGE TO WHEN U DIEEe" wait(1) script.Parent.Humanoid.Died:connect(function() if game.Players.LocalPlayer.TeamColor == "Bright red" then game.Players.LocalPlayer.TeamColor == color else print("Already that!") end end)
mambo99
#35064261Thursday, October 07, 2010 11:40 PM GMT

Hm. One time I free modeled a script, and one of the functions was findFirstKillerIfStillInGame() Now I realise just how terrible at scripting I am.
Spectrumw
#35064407Thursday, October 07, 2010 11:42 PM GMT

Thats because the guy defined the function.
pwnedu46
#35107115Friday, October 08, 2010 10:33 PM GMT

That was telamon's leaderboard script. Use the Humanoid's Died event. The event occurs after the automatic BreakJoints in model upon death, but before character falls and is removed. http://wiki.roblox.com/index.php/Died_%28Event%29

    of     1