Iβve tried turning my character neon in order to make them glow, but it seems the mesh just overwrites any changes to the material. This is what I want to achieve.
This is what my script mainly looks like
print("Hey")
Character = Char
Humanoid = Character:WaitForChild("Humanoid")
Humanoid.Changed:Connect(function(ChangedProp)
print("Yo")
if ChangedProp == "Health" then
print("Yo")
if Humanoid.Health == 0 then
print("Yo")
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
local Particles = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles2 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles3 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles4 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles5 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles6 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles7 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles8 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles9 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles10 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles11 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles12 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles13 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles14 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
local Particles15 = game:GetService("ReplicatedStorage").ParticleEmitter:Clone()
Particles.Parent = Character.HumanoidRootPart
Particles2.Parent = Character.Head
Particles3.Parent = Character.LeftFoot
Particles4.Parent = Character.LeftHand
Particles5.Parent = Character.LeftLowerArm
Particles6.Parent = Character.LeftLowerLeg
Particles7.Parent = Character.LeftUpperArm
Particles8.Parent = Character.LeftUpperLeg
Particles9.Parent = Character.LowerTorso
Particles10.Parent = Character.RightFoot
Particles11.Parent = Character.RightHand
Particles12.Parent = Character.RightLowerArm
Particles13.Parent = Character.RightLowerLeg
Particles14.Parent = Character.RightUpperArm
Particles15.Parent = Character.RightUpperLeg
Character.HumanoidRootPart.Anchored = true
Character.Head.Anchored = true
Character.LeftFoot.Anchored = true
Character.LeftHand.Anchored = true
Character.LeftLowerArm.Anchored = true
Character.LeftLowerLeg.Anchored = true
Character.LeftUpperArm.Anchored = true
Character.LeftUpperLeg.Anchored = true
Character.LowerTorso.Anchored = true
Character.RightFoot.Anchored = true
Character.RightHand.Anchored = true
Character.RightLowerArm.Anchored = true
Character.RightLowerLeg.Anchored = true
Character.RightUpperArm.Anchored = true
Character.RightUpperLeg.Anchored = true
Character.UpperTorso.Anchored = true
for i, v in pairs(Character:GetChildren()) do
if v.ClassName == "Accessory" then
v:Destroy()
end
end
Character.Head.BrickColor = BrickColor.new("Tr. Blue")
Character.LeftFoot.BrickColor = BrickColor.new("Tr. Blue")
Character.LeftHand.BrickColor = BrickColor.new("Tr. Blue")
Character.LeftLowerArm.BrickColor = BrickColor.new("Tr. Blue")
Character.LeftLowerLeg.BrickColor = BrickColor.new("Tr. Blue")
Character.LeftUpperArm.BrickColor = BrickColor.new("Tr. Blue")
Character.LeftUpperLeg.BrickColor = BrickColor.new("Tr. Blue")
Character.LowerTorso.BrickColor = BrickColor.new("Tr. Blue")
Character.RightFoot.BrickColor = BrickColor.new("Tr. Blue")
Character.RightHand.BrickColor = BrickColor.new("Tr. Blue")
Character.RightLowerArm.BrickColor = BrickColor.new("Tr. Blue")
Character.RightUpperArm.BrickColor = BrickColor.new("Tr. Blue")
Character.RightUpperLeg.BrickColor = BrickColor.new("Tr. Blue")
Character.UpperTorso.BrickColor = BrickColor.new("Tr. Blue")
Character.RightLowerLeg.BrickColor = BrickColor.new("Tr. Blue")
local SurfaceLight = game.ReplicatedStorage.SurfaceLight
local SurfaceLight1 = SurfaceLight:Clone()
local SurfaceLight2 = SurfaceLight:Clone()
local SurfaceLight3 = SurfaceLight:Clone()
local SurfaceLight3 = SurfaceLight:Clone()
local SurfaceLight4 = SurfaceLight:Clone()
local SurfaceLight5 = SurfaceLight:Clone()
local SurfaceLight6 = SurfaceLight:Clone()
local SurfaceLight7 = SurfaceLight:Clone()
local SurfaceLight8 = SurfaceLight:Clone()
local SurfaceLight9 = SurfaceLight:Clone()
local SurfaceLight10 = SurfaceLight:Clone()
local SurfaceLight11 = SurfaceLight:Clone()
local SurfaceLight12 = SurfaceLight:Clone()
local SurfaceLight13 = SurfaceLight:Clone()
local SurfaceLight14 = SurfaceLight:Clone()
local SurfaceLight15 = SurfaceLight:Clone()
SurfaceLight1.Parent = Character.Head
SurfaceLight2.Parent = Character.LeftFoot
SurfaceLight3.Parent = Character.LeftHand
SurfaceLight4.Parent = Character.LeftLowerArm
SurfaceLight5.Parent = Character.LeftLowerLeg
SurfaceLight6.Parent = Character.LeftUpperArm
SurfaceLight7.Parent = Character.LeftUpperLeg
SurfaceLight8.Parent = Character.LowerTorso
SurfaceLight9.Parent = Character.RightFoot
SurfaceLight10.Parent = Character.RightHand
SurfaceLight11.Parent = Character.RightLowerArm
SurfaceLight12.Parent = Character.RightUpperArm
SurfaceLight13.Parent = Character.RightUpperLeg
SurfaceLight14.Parent = Character.UpperTorso
SurfaceLight15.Parent = Character.RightLowerLeg
for i = 0, 1, 0.25 do
wait(0.05)
Character.Head.Transparency = i
end
for i = 0, 1, 0.25 do
wait(0.05)
Character.UpperTorso.Transparency = i
Character.RightUpperArm.Transparency = i
Character.LeftUpperArm.Transparency = i
Character.RightLowerArm.Transparency = i
Character.LeftLowerArm.Transparency = i
Character.LeftHand.Transparency = i
Character.RightHand.Transparency = i
end
for i = 0, 1, 0.25 do
wait(0.05)
Character.LowerTorso.Transparency = i
Character.LeftUpperLeg.Transparency = i
Character.RightUpperLeg.Transparency = i
Character.LeftLowerLeg.Transparency = i
Character.RightLowerLeg.Transparency = i
Character.LeftFoot.Transparency = i
Character.RightFoot.Transparency = i
end
Character.Head.face.Transparency = 1
wait(1.5)
Particles:Destroy()
Particles2:Destroy()
Particles3:Destroy()
Particles4:Destroy()
Particles5:Destroy()
Particles6:Destroy()
Particles7:Destroy()
Particles8:Destroy()
Particles9:Destroy()
Particles10:Destroy()
Particles11:Destroy()
Particles12:Destroy()
Particles13:Destroy()
Particles14:Destroy()
Particles15:Destroy()
SurfaceLight1:Destroy()
SurfaceLight2:Destroy()
SurfaceLight3:Destroy()
SurfaceLight4:Destroy()
SurfaceLight5:Destroy()
SurfaceLight6:Destroy()
SurfaceLight7:Destroy()
SurfaceLight8:Destroy()
SurfaceLight9:Destroy()
SurfaceLight10:Destroy()
SurfaceLight11:Destroy()
SurfaceLight12:Destroy()
SurfaceLight13:Destroy()
SurfaceLight14:Destroy()
SurfaceLight15:Destroy()
Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, true)
end
end
end)
end)