Advertisement
N0ePlox

BAT MAN

May 13th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. local chil = workspace:GetChildren()
  20. for i,v in pairs(chil) do
  21. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  22. v:Destroy()
  23. end
  24. end
  25. Part0 = Instance.new("Part")
  26. Part1 = Instance.new("Part")
  27. Script2 = Instance.new("Script")
  28. Part0.Name = "Baseplate"
  29. Part0.Parent = mas
  30. Part0.BrickColor = BrickColor.new("Dark stone grey")
  31. Part0.Anchored = true
  32. Part0.Locked = true
  33. Part0.FormFactor = Enum.FormFactor.Symmetric
  34. Part0.Size = Vector3.new(512, 20, 512)
  35. Part0.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  36. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  37. Part0.Position = Vector3.new(0, -10, 0)
  38. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  39. Part1.Name = "Exploding Brick"
  40. Part1.Parent = mas
  41. Part1.BrickColor = BrickColor.new("Bright red")
  42. Part1.Transparency = 1
  43. Part1.Rotation = Vector3.new(0, -0.0199999996, 0)
  44. Part1.Anchored = true
  45. Part1.CanCollide = false
  46. Part1.Size = Vector3.new(527.300049, 1.20000005, 545.200256)
  47. Part1.CFrame = CFrame.new(-1.47791338, 0.600000024, -0.388542771, 1, 0, -0.000282917696, -1.16415322e-10, 1, -1.16415322e-10, 0.000282917696, -5.82076609e-11, 0.99999994)
  48. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  49. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  50. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  51. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  52. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  53. Part1.Color = Color3.new(0.768628, 0.156863, 0.109804)
  54. Part1.Position = Vector3.new(-1.47791338, 0.600000024, -0.388542771)
  55. Part1.Orientation = Vector3.new(0, -0.0199999996, 0)
  56. Part1.Color = Color3.new(0.768628, 0.156863, 0.109804)
  57. Script2.Parent = Part1
  58. table.insert(cors,sandbox(Script2,function()
  59. o = script.Parent
  60. function onTouched(hit)
  61.  
  62.  
  63. local x = Instance.new("Explosion")
  64. x.BlastRadius = 3011
  65. x.BlastPressure = 10000000
  66. x.Position = script.Parent.Position
  67. x.Parent = script.Parent
  68.  
  69.  
  70. end
  71. connection = o.Touched:connect(onTouched)
  72. end))
  73. for i,v in pairs(mas:GetChildren()) do
  74. v.Parent = workspace
  75. pcall(function() v:MakeJoints() end)
  76. end
  77. mas:Destroy()
  78. for i,v in pairs(cors) do
  79. spawn(function()
  80. pcall(v)
  81. end)
  82. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement