What? Pls Fix This Idk How To
local tool = script.Parent
local function onTouch(partOther)
local humanOther = partOther.Parent:FindFirstChild("Humanoid")
if not humanOther then return end
if humanOther.Parent == tool then return end
humanOther:TakeDamage(25)
end
tool.Activated:Connect(onTouch)

4 comments
what line is the error?
the error means you're trying to access the Parent property of something that doesn't exist but you need to give more information about the problem
OK OK OK So I am Making A Sword But At Like 5 The local humanOther = partOther.Parent:FindFirstChild("Humanoid")
Is Causing The Problem So Please Help Me I Am Dum