KillEffect Not Working

You can write your topic however you want, but you need to answer these questions:

  1. script not works

  2. when tool hits and when checks the humanoid healt 0 it fires the events

  3. i tried Hum.Died

-- this is a part of script
local function OnActivate()
	Floruish:Stop()
	local anim = randoms[math.random(1,#randoms)]
	anim:Play()
Character.AbleToRun.Value = false
	CrossSpring:accelerate(42)
	Player.PlayerGui.Crosshair.Crosshair.Bar.Visible = true
	Player.PlayerGui.Crosshair.Crosshair.Bar.Bar2.Size = UDim2.new(0,0,1,0)
	TweenService:Create(Player.PlayerGui.Crosshair.Crosshair.Bar.Bar2, TweenInfo.new(0.48, Enum.EasingStyle.Linear), {Size = UDim2.new(1,0,1,0)}):Play()
	
	Hitbox.OnHit:Connect(function(hit, hum)
		local human = hit.Parent:WaitForChild("Humanoid")
		EventsFolder.Hit:FireServer(hit, hum, Character:WaitForChild("Torso"))
		hum:TakeDamage(20)
		if human.Health <= 0 then
			ReplicatedStorage.Events.BindableEvents.KillEffect:Fire(hit)
		end
	end)
	wait(0.2)
	Hitbox:HitStart()
	wait(0.7)
	Hitbox:HitStop()
	wait(0.55)
	Player.PlayerGui.Crosshair.Crosshair.Bar.Visible = false
	Character.AbleToRun.Value = true
end

if u want full script reply

I dont see any problem, does it give error?

it does not give any error

heres the kill effect handler:

local ts = game:GetService("TweenService")
local fadeTI = TweenInfo.new(5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local particlesTI = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut)
local rs = game:GetService("ReplicatedStorage")

game.Players.PlayerAdded:Connect(function(plr)

	plr.CharacterAdded:Connect(function(char)
		task.wait()
		local humanoid = char:WaitForChild("Humanoid")
		humanoid.BreakJointsOnDeath = false
		char.Parent = game.Workspace["Chars"]
	end)
end)



game:GetService("Players").PlayerAdded:Connect(function(plr)
	local char = plr.Character or plr.CharacterAdded:Wait()
	local PlrGui = plr.PlayerGui
	rs.Events.BindableEvents.KillEffect.Event:Connect(function(target)
		local chr = target.Parent
		local humanoid = chr:WaitForChild("Humanoid")

		local frozen = rs.Storage.KillEffects.Froze.Snow.Attachment:Clone()
		local cube = rs.Storage.KillEffects.Froze.IceCube:Clone()
		local burst = rs.Storage.KillEffects.burst.Attachment:Clone()

		--//Effects//--
		local function SnowEffect()
			local p = chr:GetDescendants()
			for _, char2 in ipairs(p) do
				if char2:IsA("BasePart") then
					char2.Anchored = true
					ts:Create(char2, fadeTI, {Color = Color3.new(0.27451, 0.65098, 0.827451)}):Play()
				end
				if char2:IsA("Shirt") or char2:IsA("Pants") then
					ts:Create(char2, fadeTI, {Color3 = Color3.new(0.27451, 0.65098, 0.827451)}):Play()
				end
				ts:Create(chr:WaitForChild("Torso"), fadeTI, {Color = Color3.new(0.27451, 0.65098, 0.827451)}):Play()
			end
			frozen.Parent = chr.HumanoidRootPart
			cube.Parent = workspace.Trash
			cube.Position = chr:WaitForChild("HumanoidRootPart").Position
			wait(3)
			cube:Destroy()
		end

		local function ghost()
			local p = chr:GetDescendants()
			for _, char2 in ipairs(p) do
				if char2:IsA("BasePart") then
					wait(0.1)
					ts:Create(char2, TweenInfo.new(0.50, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Transparency = 1}):Play()
				end
			end
			burst.Parent = chr:WaitForChild("HumanoidRootPart")
			humanoid.WalkSpeed = 0
			wait(3)
			burst:Destroy()
		end

		ghost()

		--//END//--

		if chr.Name == char.Name then
			rs.Events.RemoteEvents["DisableÄ°nv"]:FireAllClients(false)
			humanoid:UnequipTools()
			wait(3)
			plr:LoadCharacter()
			rs.Events.RemoteEvents["EnbaleÄ°nv"]:FireAllClients(false)
		end
	end)
end)	

Sorry, i dont know, im not so good to help, you can wait for others to come so they can help you

1 Like

The only problem i found is in rs.Event.RemoteEvents I think there is syntax error EnbaleInv, but i dont think its related to the problem

1 Like

I’d need more information than just “doesn’t work”, What’s not working?

1 Like

She told me in game that kill effect doesnt work when killing someone

kill effect doesnt work when killing someone