You can write your topic however you want, but you need to answer these questions:
-
I want to damage the players that is touching and moving in a part
-
It stills damages you while your not moving
-
I tried disabling and enabling the script(the damage script is in the part)
local Music = script.Music
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://0"
local controller = game.Workspace.Doll.Humanoid
local Damage = game.Workspace.slowKill.slowDamage
while true do
Music:Play()
wait(0.1)
controller:LoadAnimation(anim):Play()
wait(0.1)
Damage.Disabled = false
wait(7)
Damage.Disabled = true
end