Effect when killed in anersal

Hi, Guys i just was knowing how to make the effect like in arsenal when you kill someone and like they get sucked in the portal (picture later) . :grinning:

like so i can know if you responed

1 Like

Firstly you would check whether the player has died so like this:

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
   player.CharacterAdded:Connect(function(character)

      character:FindFirstChild("Humanoid").Died:Connect(function()
         -- Player has died
         -- You can then get there current Death Effect and apply it
      end)
   end)
end)

You should have a table of death effects functions or just regular functions.

-- Lets say you want them to turn into gold
local function Gold(character)
   for _, part in pairs(character:GetChildren()) do
      if part:IsA("BasePart") then
         part.Color3 = Color3.fromRGB(r,g,b) -- Whatever color you want
      end
   end
end

If I were in your shoes and trying to create something like this I would check If the player has Died then I would see what affect the person who killed him has equipped then run the animation.

Tysm!!! :grinning: :grinning: :grinning: