This is the third time I am asking this question and I apologize if this is a hassle for anyone, but It's a project that I need assistance on. So i've tried all suggestions but so far no difference has been made. The player lights up in flames, but they still take no damage what so ever. This is the script:
local firePart = script.Parent
local Players = game:GetService("Players");
firePart.Transparency = 1
local function LightOnFire(part)
local fire = part:FindFirstChild("Fire")
if not fire then
fire= Instance.new("Fire")
fire.Parent = part
local client = Players:GetPlayerFromCharacter(part.Parent)
if (client) then
local health = client.Character.Humanoid.Health
health = 100
health = health - 15
wait(3)
end
end
end
firePart.Touched:connect(LightOnFire)

1 comment
I reposted my answer^