N0ePlox

BONK GANG

May 15th, 2018
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.87 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. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. IntValue2 = Instance.new("IntValue")
  22. Script3 = Instance.new("Script")
  23. Part4 = Instance.new("Part")
  24. IntValue5 = Instance.new("IntValue")
  25. Script6 = Instance.new("Script")
  26. Part7 = Instance.new("Part")
  27. SpecialMesh8 = Instance.new("SpecialMesh")
  28. Script9 = Instance.new("Script")
  29. Script10 = Instance.new("Script")
  30. Model0.Parent = mas
  31. Part1.Name = "Tele2"
  32. Part1.Parent = Model0
  33. Part1.Material = Enum.Material.Neon
  34. Part1.BrickColor = BrickColor.new("Really red")
  35. Part1.Anchored = true
  36. Part1.CanCollide = false
  37. Part1.FormFactor = Enum.FormFactor.Plate
  38. Part1.Size = Vector3.new(847.200012, 133.199997, 1133.19995)
  39. Part1.CFrame = CFrame.new(20, 189, 73.3000031, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  40. Part1.TopSurface = Enum.SurfaceType.Smooth
  41. Part1.Color = Color3.new(1, 0, 0)
  42. Part1.Position = Vector3.new(20, 189, 73.3000031)
  43. Part1.Color = Color3.new(1, 0, 0)
  44. IntValue2.Name = "Enabled"
  45. IntValue2.Parent = Part1
  46. IntValue2.Value = 1
  47. Script3.Name = "Teleport pad script"
  48. Script3.Parent = Part1
  49. table.insert(cors,sandbox(Script3,function()
  50. ------------------------------------
  51. modelname="Tele1"
  52. ------------------------------------
  53.  
  54. function onTouched(part)
  55. if part.Parent ~= nil then
  56. local h = part.Parent:findFirstChild("Humanoid")
  57. if h~=nil then
  58. local teleportfrom=script.Parent.Enabled.Value
  59. if teleportfrom~=0 then
  60. if h==humanoid then
  61. return
  62. end
  63. local teleportto=script.Parent.Parent:findFirstChild(modelname)
  64. if teleportto~=nil then
  65. local torso = h.Parent.Torso
  66. local location = {teleportto.Position}
  67. local i = 1
  68.  
  69. local x = location[i].x
  70. local y = location[i].y
  71. local z = location[i].z
  72.  
  73. x = x + math.random(-1, 1)
  74. z = z + math.random(-1, 1)
  75. y = y + math.random(2, 3)
  76.  
  77. local cf = torso.CFrame
  78. local lx = 0
  79. local ly = y
  80. local lz = 0
  81.  
  82. script.Parent.Enabled.Value=0
  83. teleportto.Enabled.Value=0
  84. torso.CFrame = CFrame.new(Vector3.new(x,y,z), Vector3.new(lx,ly,lz))
  85. wait(3)
  86. script.Parent.Enabled.Value=1
  87. teleportto.Enabled.Value=1
  88. else
  89. print("Could not find teleporter!")
  90. end
  91. end
  92. end
  93. end
  94. end
  95.  
  96. script.Parent.Touched:connect(onTouched)
  97. end))
  98. Part4.Name = "Tele1"
  99. Part4.Parent = Model0
  100. Part4.Material = Enum.Material.Neon
  101. Part4.BrickColor = BrickColor.new("Really red")
  102. Part4.Anchored = true
  103. Part4.CanCollide = false
  104. Part4.FormFactor = Enum.FormFactor.Plate
  105. Part4.Size = Vector3.new(847.19989, 133.199997, 1133.19995)
  106. Part4.CFrame = CFrame.new(19.9999924, 66.600029, 73.3000031, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  107. Part4.TopSurface = Enum.SurfaceType.Smooth
  108. Part4.Color = Color3.new(1, 0, 0)
  109. Part4.Position = Vector3.new(19.9999924, 66.600029, 73.3000031)
  110. Part4.Color = Color3.new(1, 0, 0)
  111. IntValue5.Name = "Enabled"
  112. IntValue5.Parent = Part4
  113. IntValue5.Value = 1
  114. Script6.Name = "Teleport pad script"
  115. Script6.Parent = Part4
  116. table.insert(cors,sandbox(Script6,function()
  117. ------------------------------------
  118. modelname="Tele2"
  119. ------------------------------------
  120.  
  121. function onTouched(part)
  122. if part.Parent ~= nil then
  123. local h = part.Parent:findFirstChild("Humanoid")
  124. if h~=nil then
  125. local teleportfrom=script.Parent.Enabled.Value
  126. if teleportfrom~=0 then
  127. if h==humanoid then
  128. return
  129. end
  130. local teleportto=script.Parent.Parent:findFirstChild(modelname)
  131. if teleportto~=nil then
  132. local torso = h.Parent.Torso
  133. local location = {teleportto.Position}
  134. local i = 1
  135.  
  136. local x = location[i].x
  137. local y = location[i].y
  138. local z = location[i].z
  139.  
  140. x = x + math.random(-1, 1)
  141. z = z + math.random(-1, 1)
  142. y = y + math.random(2, 3)
  143.  
  144. local cf = torso.CFrame
  145. local lx = 0
  146. local ly = y
  147. local lz = 0
  148.  
  149. script.Parent.Enabled.Value=0
  150. teleportto.Enabled.Value=0
  151. torso.CFrame = CFrame.new(Vector3.new(x,y,z), Vector3.new(lx,ly,lz))
  152. wait(3)
  153. script.Parent.Enabled.Value=1
  154. teleportto.Enabled.Value=1
  155. else
  156. print("Could not find teleporter!")
  157. end
  158. end
  159. end
  160. end
  161. end
  162.  
  163. script.Parent.Touched:connect(onTouched)
  164. end))
  165. Part7.Parent = Model0
  166. Part7.Anchored = true
  167. Part7.Size = Vector3.new(4, 1, 2)
  168. Part7.CFrame = CFrame.new(-3.29999995, -0.399994791, -22.6000004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  169. Part7.BottomSurface = Enum.SurfaceType.Smooth
  170. Part7.TopSurface = Enum.SurfaceType.Smooth
  171. Part7.Position = Vector3.new(-3.29999995, -0.399994791, -22.6000004)
  172. SpecialMesh8.Parent = Part7
  173. SpecialMesh8.MeshId = "http://www.roblox.com/asset/?id=1527559"
  174. SpecialMesh8.Scale = Vector3.new(-3500, -3500, -3500)
  175. SpecialMesh8.TextureId = "http://www.roblox.com/asset/?id=1529460"
  176. SpecialMesh8.VertexColor = Vector3.new(9, 0, 0)
  177. SpecialMesh8.MeshType = Enum.MeshType.FileMesh
  178. SpecialMesh8.Scale = Vector3.new(-3500, -3500, -3500)
  179. Script9.Name = "Sound Script"
  180. Script9.Parent = Model0
  181. table.insert(cors,sandbox(Script9,function()
  182. local s = Instance.new("Sound")
  183.  
  184. s.Name = "Name"
  185. s.SoundId = "http://www.roblox.com/asset/?id=147836419"
  186. s.Volume = 1
  187. s.Looped = true
  188. s.archivable = false
  189.  
  190. s.Parent = game.Workspace
  191.  
  192. wait(5)
  193.  
  194. s:play()
  195. end))
  196. Script10.Name = "RegenScript"
  197. Script10.Parent = Model0
  198. table.insert(cors,sandbox(Script10,function()
  199. --Place this INSIDE the model. Don't replace the model name or anything.
  200.  
  201.  
  202. ------------------------------------------------------------------------------------------
  203.  
  204.  
  205. object = script.Parent
  206.  
  207.  
  208. if (object ~= nil) and (object ~= game.Workspace) then
  209.  
  210.  
  211. model = object
  212.  
  213.  
  214.  
  215.  
  216.  
  217. backup = model:clone() -- Make the backup
  218.  
  219.  
  220. waitTime = 60 --Time to wait between regenerations
  221.  
  222.  
  223. wait(math.random(0, waitTime))
  224.  
  225.  
  226. while true do
  227.  
  228.  
  229. wait(waitTime) -- Regen wait time
  230.  
  231.  
  232.  
  233.  
  234.  
  235. message.Parent = game.Workspace
  236.  
  237.  
  238. model:remove()
  239.  
  240.  
  241.  
  242.  
  243.  
  244. wait(1.5) -- Display regen message for this amount of time
  245.  
  246.  
  247.  
  248.  
  249.  
  250. model = backup:clone()
  251.  
  252.  
  253. model.Parent = game.Workspace
  254.  
  255.  
  256. model:makeJoints()
  257.  
  258.  
  259. message.Parent = nil
  260.  
  261.  
  262. end
  263.  
  264.  
  265. end
  266.  
  267.  
  268. ------------------------------------------------------------------------------------------
  269.  
  270.  
  271. -------------------------------~WoNkA444~-----------------------------------------edited by teeteejay ^__^
  272.  
  273.  
  274. ------------------------------------------------------------------------------------------
  275.  
  276.  
  277.  
  278. end))
  279. for i,v in pairs(mas:GetChildren()) do
  280. v.Parent = workspace
  281. pcall(function() v:MakeJoints() end)
  282. end
  283. mas:Destroy()
  284. for i,v in pairs(cors) do
  285. spawn(function()
  286. pcall(v)
  287. end)
  288. end
Add Comment
Please, Sign In to add comment