Advertisement
bonniekawaiidesu

avee ma we

Mar 2nd, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.84 KB | None | 0 0
  1. function sandbox(var,func)
  2.     local env = getfenv(func)
  3.     local newenv = setmetatable({},{
  4.         __index = function(self,k)
  5.             if k=="script" then
  6.                 return var
  7.             else
  8.                 return env[k]
  9.             end
  10.         end,
  11.     })
  12.     setfenv(func,newenv)
  13.     return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Model0 = Instance.new("Model")
  18. Script1 = Instance.new("Script")
  19. Script2 = Instance.new("Script")
  20. Script3 = Instance.new("Script")
  21. Model0.Name = "CompiledScripts"
  22. Model0.Parent = mas
  23. Script1.Name = "Script1"
  24. Script1.Parent = Model0
  25. table.insert(cors,sandbox(Script1,function()
  26. for i = 0 , 10 do
  27.     for i = 0, 10 do
  28. function sandbox(var,func)
  29.     local env = getfenv(func)
  30.     local newenv = setmetatable({},{
  31.         __index = function(self,k)
  32.             if k=="script" then
  33.                 return var
  34.             else
  35.                 return env[k]
  36.             end
  37.         end,
  38.     })
  39.     setfenv(func,newenv)
  40.     return func
  41. end
  42. cors = {}
  43. mas = Instance.new("Model",game:GetService("Lighting"))
  44. Part0 = Instance.new("Part")
  45. Decal1 = Instance.new("Decal")
  46. Script2 = Instance.new("Script")
  47. BodyAngularVelocity3 = Instance.new("BodyAngularVelocity")
  48. Part0.Name = "bouncy ball"
  49. Part0.Parent = mas
  50. Part0.CFrame = CFrame.new(7.64009953, 27.5000038, -1.77146029, -0.999999881, -8.52651283e-14, -7.04467652e-07, -4.97379915e-14, 0.999999881, -5.96046448e-08, 7.04467595e-07, -5.96046448e-08, -0.999999881)
  51. Part0.Orientation = Vector3.new(0, -180, 0)
  52. Part0.Position = Vector3.new(7.64009953, 27.5000038, -1.77146029)
  53. Part0.Rotation = Vector3.new(180, 0, 180)
  54. Part0.Color = Color3.new(1, 1, 0)
  55. Part0.Size = Vector3.new(3, 3, 3)
  56. Part0.BottomSurface = Enum.SurfaceType.Smooth
  57. Part0.BrickColor = BrickColor.new("New Yeller")
  58. Part0.Material = Enum.Material.SmoothPlastic
  59. Part0.TopSurface = Enum.SurfaceType.Smooth
  60. Part0.brickColor = BrickColor.new("New Yeller")
  61. Part0.FormFactor = Enum.FormFactor.Symmetric
  62. Part0.formFactor = Enum.FormFactor.Symmetric
  63. Part0.Shape = Enum.PartType.Ball
  64. Decal1.Parent = Part0
  65. Decal1.Texture = "http://www.roblox.com/asset/?id=171121051"
  66. Script2.Name = "Boncy"
  67. Script2.Parent = Part0
  68. table.insert(cors,sandbox(Script2,function()
  69. local s = Instance.new("Sound")
  70.  
  71. s.Name = "BGMusic"
  72. s.SoundId = "rbxasset://sounds//short spring sound.wav"
  73. s.Volume = 1
  74. s.Pitch = 1
  75. s.Looped = false
  76. s.archivable = false
  77.  
  78. s.Parent = script.Parent
  79.  
  80. function onTouched(part)
  81.     script.Parent.Velocity=Vector3.new((math.random(-99, 99)),(math.random(-99, 99)),(math.random(-99, 99)))
  82.     s:play()
  83.    
  84.     if part.Locked ~= true and part.Name ~= "bouncy ball" then
  85.         part.Velocity=Vector3.new((math.random(-99, 99)),(math.random(-99, 99)),(math.random(-99, 99)))
  86.         local bouncytouch = script:clone()
  87.         bouncytouch.Parent = part
  88.  
  89.         script.Parent.BrickColor = part.BrickColor
  90.  
  91.         local face = script.Parent.Decal:clone()
  92.         face.Parent = part
  93.  
  94.         part.Name = script.Parent.Name
  95.         part.Anchored = false
  96.        
  97.         local bob = script.Parent:clone()
  98.         bob.Position = script.Parent.Position
  99.         bob.Parent = workspace
  100.        
  101.         local inf = script.Parent.BodyAngularVelocity:clone()
  102.         inf.Parent = part
  103.        
  104.         part.BackSurface = ("Smooth")
  105.         part.BottomSurface = ("Smooth")
  106.         part.FrontSurface = ("Smooth")
  107.         part.LeftSurface = ("Smooth")
  108.         part.RightSurface = ("Smooth")
  109.         part.TopSurface = ("Smooth")
  110.        
  111.        
  112.         part:BreakJoints()
  113.         part.Parent = "Workspace"
  114.        
  115.         script.Parent:remove()
  116.         end
  117. end
  118.  
  119. script.Parent.Touched:connect(onTouched)
  120.  
  121. end))
  122. BodyAngularVelocity3.Parent = Part0
  123. BodyAngularVelocity3.AngularVelocity = Vector3.new(0, INF, 0)
  124. BodyAngularVelocity3.angularvelocity = Vector3.new(0, INF, 0)
  125. for i,v in pairs(mas:GetChildren()) do
  126.     v.Parent = script
  127.     pcall(function() v:MakeJoints() end)
  128. end
  129. mas:Destroy()
  130. for i,v in pairs(cors) do
  131.     spawn(function()
  132.         pcall(v)
  133.     end)
  134. end
  135. end
  136. end
  137.  
  138.  
  139. end))
  140. Script2.Name = "Script3"
  141. Script2.Parent = Model0
  142. table.insert(cors,sandbox(Script2,function()
  143.  
  144. --Converted with ttyyuu12345's model to script plugin v4
  145. function sandbox(var,func)
  146.     local env = getfenv(func)
  147.     local newenv = setmetatable({},{
  148.         __index = function(self,k)
  149.             if k=="script" then
  150.                 return var
  151.             else
  152.                 return env[k]
  153.             end
  154.         end,
  155.     })
  156.     setfenv(func,newenv)
  157.     return func
  158. end
  159. cors = {}
  160. mas = Instance.new("Model",game:GetService("Lighting"))
  161. Part0 = Instance.new("Part")
  162. Fire1 = Instance.new("Fire")
  163. Part0.Parent = mas
  164. Part0.CFrame = CFrame.new(-28.5, 0.5, -8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  165. Part0.Position = Vector3.new(-28.5, 0.5, -8.5)
  166. Part0.Size = Vector3.new(1, 1, 1)
  167. Part0.Anchored = true
  168. Part0.BottomSurface = Enum.SurfaceType.Smooth
  169. Part0.TopSurface = Enum.SurfaceType.Smooth
  170. Fire1.Parent = Part0
  171. Fire1.Color = Color3.new(0.92549, 0.207843, 0.423529)
  172. Fire1.Size = 30
  173. Fire1.Heat = 0
  174. Fire1.size = 30
  175. for i,v in pairs(mas:GetChildren()) do
  176.     v.Parent = script
  177.     pcall(function() v:MakeJoints() end)
  178. end
  179. mas:Destroy()
  180. for i,v in pairs(cors) do
  181.     spawn(function()
  182.         pcall(v)
  183.     end)
  184. end
  185.  
  186. end))
  187. Script3.Name = "Script2"
  188. Script3.Parent = Model0
  189. table.insert(cors,sandbox(Script3,function()
  190.  
  191. function sandbox(var,func)
  192.     local env = getfenv(func)
  193.     local newenv = setmetatable({},{
  194.         __index = function(self,k)
  195.             if k=="script" then
  196.                 return var
  197.             else
  198.                 return env[k]
  199.             end
  200.         end,
  201.     })
  202.     setfenv(func,newenv)
  203.     return func
  204. end
  205. cors = {}
  206. mas = Instance.new("Model",game:GetService("Lighting"))
  207. Sound0 = Instance.new("Sound")
  208. Sound0.Name = "Lion Sleeps Tonight [FREE]"
  209. Sound0.Parent = mas
  210. Sound0.Looped = true
  211. Sound0.SoundId = "rbxassetid://2659211103"
  212. Sound0.Volume = 2.5
  213. Sound0.Playing = true
  214. for i,v in pairs(mas:GetChildren()) do
  215.     v.Parent = script
  216.     pcall(function() v:MakeJoints() end)
  217. end
  218. mas:Destroy()
  219. for i,v in pairs(cors) do
  220.     spawn(function()
  221.         pcall(v)
  222.     end)
  223. end
  224.  
  225. end))
  226. for i,v in pairs(mas:GetChildren()) do
  227.     v.Parent = script
  228.     pcall(function() v:MakeJoints() end)
  229. end
  230. mas:Destroy()
  231. for i,v in pairs(cors) do
  232.     spawn(function()
  233.         pcall(v)
  234.     end)
  235. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement