Hello! This is my first post ever on this website, but I have a problem to solve and I need help from someone. I have a FireScript (Normal Script) but when I want to remove the fire from my HumanoidRootPart, it does not work. The line that should be responsible for that is Line 23. I've sent some info.
-- Variables
local firePart = script.Parent
local Players = game.Players
-- Scripting In Action
function LightOnFire(hit)
local fire = hit.Parent:FindFirstChild("Fire")
if fire then
else
local FireInstance = Instance.new("Fire")
FireInstance.Name = "HumanoidFire"
FireInstance.Heat = 13
FireInstance.Size = 9
if hit.Parent:FindFirstChild("Humanoid") then
FireInstance.Parent = hit.Parent.HumanoidRootPart
local Humanoid = hit.Parent:FindFirstChild("Humanoid")
wait(2.5)
Humanoid.Health = Humanoid.Health -10
wait(3)
local PlayerOnFire = > game.Workspace[Player].HumanoidRootPart:FindFirstChild("HumanoidFire")
if PlayerOnFire then
PlayerOnFire:Destroy()
end
end
end
end
firePart.Touched:Connect(LightOnFire)
I will be waiting for some answers, I can send more info if you would like.

1 comment
If you need more help, I would suggest adding me on discord as I also have a game to work on too and will not be checking this website all the time. LoxiGoose#9553