RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Write me a script that can put out a player that is on fire when touching a certain part"
-- server script local part = script.Parent local function extinguishFire(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local character = player.Character local fire = character:FindFirstChild("Fire") if fire then fire:Destroy() end end end part.Touched:Connect(extinguishFire)