Im trying to make a script where when you get a kill in my game, a message comes up on the screen saying nice kill. The message types out on the screen so it needs to be placed in the gui. But I only want is to be placed in the gui when that player gets a kill, and then I want it removed from the gui after its finished. Heres what I got so far. The name of my gui is called (killmessage) and right now, its located in the Lighting.
- function handleKillCount(humanoid, player)
- local killer = getKillerOfHumanoidIfStillInGame(humanoid)
- if killer ~= nil then
local stats = killer:findFirstChild("leaderstats")if stats ~= nil thenlocal kills = stats:findFirstChild("Kills")if killer ~= player thenkills.Value = kills.Value + 1game.Lighting:FindFirstChild(KillMessage):Clone().Parent = player.PlayerGuielsekills.Value = kills.Value - 1end

3 comments
OMG... holy ****!!!
ugh....free models.
Code block...