part.Touched:Connect(function(part)
local incase = false
local humanoid = part.Parent:FindFirstChild("Humanoid")
local rot = part.Parent:FindFirstChild("HumanoidRootPart")
if part.Name == char.Name then
incase = true
end
if (humanoid ~= nil) and incase == false then
humanoid.Health = humanoid.Health -1.2
humanoid.WalkSpeed = humanoid.WalkSpeed -.3
--
end
-------------
end)
COMMUNITY QUESTION
idk don't know what i am doing wrong the attack a player it's damaging the player how do i fix?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Duplicate https://scriptinghelpers.org/questions/76785/idk-how-to-fix-this-it-kill-the-player-who-made-it-how-do-i-fix