Hello I am sorry to bother you I keep getting this error
14:28:21.311 - Workspace.Red Devil Lvl1.Right Leg.Script:7: attempt to call a boolean value 14:28:21.313 - Stack Begin
14:28:21.611 - Workspace.Red Devil Lvl1.Right Leg.Script:7: attempt to call a boolean value
this is script
Damage = script.Parent.Parent.Damage.Value
function onTouched(part) local h = part.Parent:findFirstChild("Humanoid") local Friend = part.Parent:findFirstChild("Friend") if (h ~= nil) and (Friend == nil) and (script.Parent.Parent.Humanoid.Health > 0) or (script.Parent.Parent.Humanoid.Health > 0) (h ~= nil) and (Friend.Value ~= script.Parent.Parent.Friend.Value) then h.Health = h.Health - Damage end end
script.Parent.Touched:connect(onTouched)
Can you turn the code into a code block so i can answer your question?