local handle = script.Parent
local tool = script.Parent.Parent
local spray = tool.spray
local effectMGR = require(game.ReplicatedStorage.EffectManager)
local trigger = tool.ExtinguisherTrigger
local touched
trigger.Touched:Connect(function(otherPart)
if otherPart.Parent then
touched = otherPart.Parent
end
end)
tool.Activated:Connect(function()
local isBurning = effectMGR.GetStatus(touched,"Burning")
if isBurning and trigger.Touched then
effectMGR.RemoveEffect(touched,"Burning")
end
end)
Hi, I use an effect module that I made myself. It can support both tables AND instances of characters. However, I’m making a fire extinguisher thing that uses a hitbox already in game. How do I make it so that it extinguishes every player that is within the hitbox, and if they leave - they will not be affected anymore?