Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- by unreal
- -- TODO: add comments between lines
- local mouse = game:GetService"Players".LocalPlayer:GetMouse()
- local burn
- _G.spread = true
- burn = function(part)
- coroutine.wrap(function()
- -- disgusting
- if (part.Size.x * part.Size.y) <= 7000 and not (part.Material == Enum.Material.CorrodedMetal) and not part:FindFirstChild"Fire" and _G.spread then
- part:MakeJoints()
- local fire = Instance.new("Fire" , part)
- if math.random(1, 400) == 100 then
- Instance.new("Explosion" , part).Position = part.Position
- end
- wait(3)
- part.Material = Enum.Material.CorrodedMetal
- wait(3)
- part.Color = Color3.new(0, 0, 0)
- wait(3)
- part.Touched:connect(burn)
- for i, touching in pairs(part:GetConnectedParts()) do
- wait(math.random(0, 5))
- burn(touching)
- end
- wait(.4)
- part:BreakJoints()
- wait(3)
- part.Anchored = false
- wait(40)
- fire:Destroy()
- part.Anchored = true
- end
- end)()
- end
- game:GetService"UserInputService".InputBegan:connect(function(key)
- if key.KeyCode == Enum.KeyCode.Semicolon then
- burn(mouse.Target)
- end
- end)
- print("[fire.lua] press semicolon.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement