RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Write me a script that sets the player on fire when touching a certain part"
-- script for the part local part = script.Parent local function setPlayerOnFire(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local character = player.Character local fire = Instance.new("Fire") fire.Parent = character.HumanoidRootPart wait(5) fire:Destroy() end end part.Touched:Connect(setPlayerOnFire)