Advertisement
Guest User

fire script

a guest
Jul 26th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. --Made by Cristi23454 it had mistakes so I HarryPotterxx2 fixed them :)
  2.  
  3. -------------------------UNREMOVABLE---------------_____________________________________
  4. local Settings={["Un_Removable"]= "On"}
  5. local function mFloor(x) return x - x % 1 end
  6. local Un_Removable = tostring(Settings["Un_Removable"]):lower() == "off"
  7. if Un_Removable then
  8. Game.Workspace.DescendantRemoving:connect(function(Child)
  9. if not Remove_At_Will and Child == script then
  10. script:Clone().Parent = Game.Workspace
  11. end
  12. end)
  13. end
  14. -------------------------UNREMOVEABLE-------------______________________________________
  15. message = Instance.new("Hint")
  16. i = 1
  17. bad = 0
  18. okList = {}
  19.  
  20. message.Parent = Workspace
  21.  
  22. nextFire = game:GetService("Workspace"):FindFirstChild("Fire",1)
  23. while nextFire ~= nil do
  24. wait()
  25. if nextFire:FindFirstChild("Spread") ~= nil then
  26. nextFire:Remove()
  27. bad = bad + 1
  28. message.Text = tostring(bad) .. " fire spread scripts found"
  29. print("Bad fire found")
  30. else
  31. print("Good fire found")
  32. nextFire.Name = "GoodFire"
  33. okList[i] = nextFire
  34. i = i + 1
  35. end
  36. nextFire = game:GetService("Workspace"):FindFirstChild("Fire",1)
  37. end
  38.  
  39. for it = 1, #okList do
  40. okList[it].Name = "Fire"
  41. end
  42.  
  43. i = nil
  44. okList = nil
  45.  
  46. message.Text = "Search complete. " .. tostring(bad) .. ""
  47. wait(2)
  48. message:Remove()
  49.  
  50.  
  51. p = Instance.new("Part")
  52. p.Parent = workspace
  53. p.Size = Vector3.new(1000,1000,1000)
  54. p.Position = Vector3.new(0,1000,0)
  55. p.Transparency = 1
  56. p.CanCollide = true
  57.  
  58. function unSpread(part)
  59. check = part:findFirstChild("Fire")
  60. if check ~= nil then
  61. if check.Spread ~= nil then
  62. check:remove()
  63. p.Fire:remove()
  64. end
  65. end
  66. end
  67.  
  68.  
  69. p.Touched:connect(unSpread)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement