So I am making a kill effect system, but right now I am trying to figure out the correct method for the actual kill effects.
I already have a system that detects who killed who and activates the kill effect, but I am not sure how to the make the kill effect animation and effect itself.
For example, I have a kill effect that is supposed to turn the player into stone, would I just create a clone of the player’s character and replace it with a stone character model? Any advice is appreciated.
I guess it depends what the effect was, but you could just loop through the player and change the material if that’s what you wanted to do. For instance changing the player character to a ForceField material…
local char = player.Character
local children = char:GetChildren()
for i, v in pairs(children) do
if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
v.Transparency = 0.5
v.Material = "ForceField"
v.BrickColor = BrickColor.new("Bright violet")
end
end
If you’re cloning the character, remember to set the Archivable property to true and then set it back to false (the default) when you’re done.