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)

1 comment
Look right underneath this comment, there will be an 'edit' button. Then all you do is highlight your code and click the blue Lua icon, then save. If you do it right it should put it in code format