local tool = script.Parent
local damage = 25
local inner = tool.Emitter.Inner
local outer = tool.Emitter.Inner
tool:WaitForChild("Blade").Touched:Connect(function (hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:TakeDamage(damage)
end
end)
tool:WaitForChild("RemoteEvent").OnServerEvent:Connect(function (player, state)
if state then
tool.Emitter.Inner.Enabled = true
tool.Emitter.Outer.Enabled = true
else
inner.Parent = nil
outer.Parent = nil
inner.Enabled = false
outer.Enabled = false
wait(2)
inner.Parent = tool.Emitter
outer.Parent = tool.Emitter
end
end)
it wont deal damage and there isnt a error
