Im making a FireBall script for my game and i was just testing it and something is wrong with my fire damage script here:
script.Parent.Touched:connect(onDamage)
on this line on code it says touched is not a valid member of local script what can i use instead or at least fix it?? Here is the whole script:
function onDamage(Part)
if Part.Parent:FindFirstChild("Humanoid") ~= nil and Part.Parent.Name ~=
"script.Parent.Name" then
script.Disabled = true for i = 1,25 do Part.Parent.Huamnoid.Health = Part.Parent.Humanoid.Health -1 wait(0,05) end script.Parent:remove() end wait()
end script.Parent.Touched:connect(onDamage)
--
On line 5: Part.Parent.Huamnoid.Health = Part.Parent.Humanoid.Health -1 - You spelled Humanoid wrong