Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help me it say Touched is not a valid member of LocalScript can any one help me?

Asked by 8 years ago
  function onDamage(Part)
 if Part.Parent:FindFirstChild("Humanoid") ~= nil and Part.Parent.Name ~= "script.Parent.Name" then
    script.Disabled = true
    local f = Instance.new("Fire", Part)
    for i = 1,25 do
        f.Size = f.Size +0.25
        Part.Parent.Humanoid.Health = Part.Parent.Humanoid.Part.Parent.Humanoid.Health -1
         wait(0.05)
      end
      f:remove()
      script.Parent:remove()
   end
    wait(0.025)
end

script.Parent.Touched:connect(onDamage)


And can you also solve is say  Disable is not a valid member of Script can you help me on that also?


Answer this question