Advertisement
UhhLegoboy

Crayon Dance

Apr 2nd, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.44 KB | None | 0 0
  1. local runDummyScript = function(f,scri)
  2. local oldenv = getfenv(f)
  3. local newenv = setmetatable({}, {
  4. __index = function(_, k)
  5. if k:lower() == 'script' then
  6. return scri
  7. else
  8. return oldenv[k]
  9. end
  10. end
  11. })
  12. setfenv(f, newenv)
  13. ypcall(function() f() end)
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. mas.Name = "CompiledModel"
  18. o1 = Instance.new("Model")
  19. o2 = Instance.new("Humanoid")
  20. o3 = Instance.new("Part")
  21. o4 = Instance.new("SpecialMesh")
  22. o5 = Instance.new("Decal")
  23. o6 = Instance.new("Script")
  24. o7 = Instance.new("Part")
  25. o8 = Instance.new("Script")
  26. o9 = Instance.new("Part")
  27. o10 = Instance.new("Script")
  28. o11 = Instance.new("Part")
  29. o12 = Instance.new("Script")
  30. o13 = Instance.new("Part")
  31. o14 = Instance.new("Script")
  32. o15 = Instance.new("Part")
  33. o16 = Instance.new("Sound")
  34. o17 = Instance.new("Script")
  35. o18 = Instance.new("Script")
  36. o1.Name = ""
  37. o1.Parent = mas
  38. o1.PrimaryPart = o3
  39. o2.Parent = o1
  40. o2.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  41. o2.Health = 0
  42. o2.MaxHealth = 0
  43. o2.WalkSpeed = 0
  44. o3.Name = "Limb"
  45. o3.Parent = o1
  46. o3.Material = Enum.Material.SmoothPlastic
  47. o3.BrickColor = BrickColor.new("Bright yellow")
  48. o3.Position = Vector3.new(-6.07831001, 4.50000477, -11.3354063)
  49. o3.Anchored = true
  50. o3.CanCollide = false
  51. o3.FormFactor = Enum.FormFactor.Symmetric
  52. o3.Size = Vector3.new(2, 1, 1)
  53. o3.CFrame = CFrame.new(-6.07831001, 4.50000477, -11.3354063, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  54. o3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  55. o3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  56. o3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  57. o3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  58. o3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  59. o3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  60. o3.Color = Color3.new(0.960784, 0.803922, 0.188235)
  61. o3.Position = Vector3.new(-6.07831001, 4.50000477, -11.3354063)
  62. o4.Parent = o3
  63. o4.Scale = Vector3.new(1.25, 1.25, 1.25)
  64. o5.Parent = o3
  65. o5.Texture = "http://www.roblox.com/asset/?id=690776712"
  66. o6.Parent = o3
  67. table.insert(cors,coroutine.create(function()
  68. wait()
  69. runDummyScript(function()
  70. while true do
  71.     script.Parent.Rotation = Vector3.new(script.Parent.Rotation.X+math.random(1,100), script.Parent.Rotation.Y+math.random(1,100), script.Parent.Rotation.Z+math.random(1,100))
  72.     wait(0.01)
  73. end
  74. end,o6)
  75. end))
  76. o7.Name = "Limb"
  77. o7.Parent = o1
  78. o7.Material = Enum.Material.SmoothPlastic
  79. o7.BrickColor = BrickColor.new("Bright yellow")
  80. o7.Position = Vector3.new(-7.57831001, 3.00000906, -11.3354063)
  81. o7.Anchored = true
  82. o7.CanCollide = false
  83. o7.FormFactor = Enum.FormFactor.Symmetric
  84. o7.Size = Vector3.new(1, 2, 1)
  85. o7.CFrame = CFrame.new(-7.57831001, 3.00000906, -11.3354063, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  86. o7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  87. o7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  88. o7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  89. o7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  90. o7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  91. o7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  92. o7.Color = Color3.new(0.960784, 0.803922, 0.188235)
  93. o7.Position = Vector3.new(-7.57831001, 3.00000906, -11.3354063)
  94. o8.Parent = o7
  95. table.insert(cors,coroutine.create(function()
  96. wait()
  97. runDummyScript(function()
  98. while true do
  99.     script.Parent.Rotation = Vector3.new(script.Parent.Rotation.X+math.random(1,100), script.Parent.Rotation.Y+math.random(1,100), script.Parent.Rotation.Z+math.random(1,100))
  100.     wait(0.01)
  101. end
  102. end,o8)
  103. end))
  104. o9.Name = "Limb"
  105. o9.Parent = o1
  106. o9.Material = Enum.Material.SmoothPlastic
  107. o9.BrickColor = BrickColor.new("Br. yellowish green")
  108. o9.Position = Vector3.new(-6.57831001, 1.00003004, -11.3354063)
  109. o9.Anchored = true
  110. o9.CanCollide = false
  111. o9.FormFactor = Enum.FormFactor.Symmetric
  112. o9.Size = Vector3.new(1, 2, 1)
  113. o9.CFrame = CFrame.new(-6.57831001, 1.00003004, -11.3354063, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  114. o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  115. o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  116. o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  117. o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  118. o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  119. o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  120. o9.Color = Color3.new(0.643137, 0.741176, 0.278431)
  121. o9.Position = Vector3.new(-6.57831001, 1.00003004, -11.3354063)
  122. o10.Parent = o9
  123. table.insert(cors,coroutine.create(function()
  124. wait()
  125. runDummyScript(function()
  126. while true do
  127.     script.Parent.Rotation = Vector3.new(script.Parent.Rotation.X+math.random(1,100), script.Parent.Rotation.Y+math.random(1,100), script.Parent.Rotation.Z+math.random(1,100))
  128.     wait(0.01)
  129. end
  130. end,o10)
  131. end))
  132. o11.Name = "Limb"
  133. o11.Parent = o1
  134. o11.Material = Enum.Material.SmoothPlastic
  135. o11.BrickColor = BrickColor.new("Bright yellow")
  136. o11.Position = Vector3.new(-4.57831001, 3.00000906, -11.3354063)
  137. o11.Anchored = true
  138. o11.CanCollide = false
  139. o11.FormFactor = Enum.FormFactor.Symmetric
  140. o11.Size = Vector3.new(1, 2, 1)
  141. o11.CFrame = CFrame.new(-4.57831001, 3.00000906, -11.3354063, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  142. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  143. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  144. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  145. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  146. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  147. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  148. o11.Color = Color3.new(0.960784, 0.803922, 0.188235)
  149. o11.Position = Vector3.new(-4.57831001, 3.00000906, -11.3354063)
  150. o12.Parent = o11
  151. table.insert(cors,coroutine.create(function()
  152. wait()
  153. runDummyScript(function()
  154. while true do
  155.     script.Parent.Rotation = Vector3.new(script.Parent.Rotation.X+math.random(1,100), script.Parent.Rotation.Y+math.random(1,100), script.Parent.Rotation.Z+math.random(1,100))
  156.     wait(0.01)
  157. end
  158. end,o12)
  159. end))
  160. o13.Name = "Limb"
  161. o13.Parent = o1
  162. o13.Material = Enum.Material.SmoothPlastic
  163. o13.BrickColor = BrickColor.new("Br. yellowish green")
  164. o13.Position = Vector3.new(-5.57831001, 1.00003004, -11.3354063)
  165. o13.Anchored = true
  166. o13.CanCollide = false
  167. o13.FormFactor = Enum.FormFactor.Symmetric
  168. o13.Size = Vector3.new(1, 2, 1)
  169. o13.CFrame = CFrame.new(-5.57831001, 1.00003004, -11.3354063, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  170. o13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  171. o13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  172. o13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  173. o13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  174. o13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  175. o13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  176. o13.Color = Color3.new(0.643137, 0.741176, 0.278431)
  177. o13.Position = Vector3.new(-5.57831001, 1.00003004, -11.3354063)
  178. o14.Parent = o13
  179. table.insert(cors,coroutine.create(function()
  180. wait()
  181. runDummyScript(function()
  182. while true do
  183.     script.Parent.Rotation = Vector3.new(script.Parent.Rotation.X+math.random(1,100), script.Parent.Rotation.Y+math.random(1,100), script.Parent.Rotation.Z+math.random(1,100))
  184.     wait(0.01)
  185. end
  186. end,o14)
  187. end))
  188. o15.Name = "Limb"
  189. o15.Parent = o1
  190. o15.Material = Enum.Material.SmoothPlastic
  191. o15.BrickColor = BrickColor.new("Deep blue")
  192. o15.Position = Vector3.new(-6.07831001, 3.00000906, -11.3354063)
  193. o15.Anchored = true
  194. o15.CanCollide = false
  195. o15.FormFactor = Enum.FormFactor.Symmetric
  196. o15.Size = Vector3.new(2, 2, 1)
  197. o15.CFrame = CFrame.new(-6.07831001, 3.00000906, -11.3354063, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  198. o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  199. o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  200. o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  201. o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  202. o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  203. o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  204. o15.Color = Color3.new(0.129412, 0.329412, 0.72549)
  205. o15.Position = Vector3.new(-6.07831001, 3.00000906, -11.3354063)
  206. o16.Parent = o15
  207. o16.SoundId = "rbxassetid://718979633"
  208. o16.Volume = 5
  209. o16.Looped = true
  210. o17.Parent = o16
  211. table.insert(cors,coroutine.create(function()
  212. wait()
  213. runDummyScript(function()
  214. script.Parent : play()
  215. end,o17)
  216. end))
  217. o18.Parent = o15
  218. table.insert(cors,coroutine.create(function()
  219. wait()
  220. runDummyScript(function()
  221. while true do
  222.     script.Parent.Rotation = Vector3.new(script.Parent.Rotation.X+math.random(1,100), script.Parent.Rotation.Y+math.random(1,100), script.Parent.Rotation.Z+math.random(1,100))
  223.     wait(0.01)
  224. end
  225. end,o18)
  226. end))
  227. mas.Parent = workspace
  228. mas:MakeJoints()
  229. local mas1 = mas:GetChildren()
  230. for i=1,#mas1 do
  231.     mas1[i].Parent = workspace
  232.     ypcall(function() mas1[i]:MakeJoints() end)
  233. end
  234. mas:Destroy()
  235. for i=1,#cors do
  236. coroutine.resume(cors[i])
  237. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement