Advertisement
Diamond_Nicholas

rainbow2

Jan 30th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.16 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(Enum,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. Part0 = Instance.new("Part")
  20. Script1 = Instance.new("Script")
  21. Part2 = Instance.new("Part")
  22. Script3 = Instance.new("Script")
  23. Part0.Name = "Music Brick"
  24. Part0.Parent = mas
  25. Part0.CFrame = CFrame.new(0, -71.3535004, -64, -0, 0, 1, -0, 1, 0, -1, 0, 0)
  26. Part0.Orientation = Vector3.new(0, 90, 0)
  27. Part0.Position = Vector3.new(0, -71.3535004, -64)
  28. Part0.Rotation = Vector3.new(0, 90, 0)
  29. Part0.Color = Color3.new(1, 1, 0)
  30. Part0.Size = Vector3.new(1, 0.400000006, 1)
  31. Part0.Anchored = true
  32. Part0.BrickColor = BrickColor.new("New Yeller")
  33. Part0.Reflectance = 0.5
  34. Part0.TopSurface = Enum.SurfaceType.Smooth
  35. Part0.brickColor = BrickColor.new("New Yeller")
  36. Part0.FormFactor = Enum.FormFactor.Plate
  37. Part0.formFactor = Enum.FormFactor.Plate
  38. Script1.Parent = Part0
  39. table.insert(cors,sandbox(Script1,function()
  40.  
  41. local s = Instance.new("Sound")
  42.  
  43. s.Name = "Sound"
  44. s.SoundId = "http://www.roblox.com/asset/?id=2536388446"
  45. s.Volume = 9
  46. s.Pitch = 1
  47. s.Looped = true
  48. s.archivable = false
  49.  
  50. s.Parent = game.Workspace
  51.  
  52. wait()
  53.  
  54. s:play()
  55.  
  56. end))
  57. Part2.Name = "dancefloor"
  58. Part2.Parent = mas
  59. Part2.CFrame = CFrame.new(-159.279968, 0.600000024, 17.0248413, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  60. Part2.Position = Vector3.new(-159.279968, 0.600000024, 17.0248413)
  61. Part2.Color = Color3.new(0.854902, 0.521569, 0.254902)
  62. Part2.Size = Vector3.new(2047.93005, 1.20000005, 2048)
  63. Part2.Anchored = true
  64. Part2.BottomSurface = Enum.SurfaceType.Smooth
  65. Part2.BrickColor = BrickColor.new("Bright orange")
  66. Part2.Material = Enum.Material.Neon
  67. Part2.TopSurface = Enum.SurfaceType.Smooth
  68. Part2.brickColor = BrickColor.new("Bright orange")
  69. Script3.Name = "Smooth Color Changing Script"
  70. Script3.Parent = Part2
  71. table.insert(cors,sandbox(Script3,function()
  72. r = 255
  73. g = 0
  74. b = 0
  75.  
  76. while true do
  77. wait(0.005)
  78.  
  79. while (r == 255 and g ~= 255) do
  80. wait(0.005)
  81. g = g + 1
  82. script.Parent.Color = Color3.fromRGB(r,g,b)
  83. end
  84. wait(0.005)
  85. r = r - 1
  86. script.Parent.Color = Color3.fromRGB(r,g,b)
  87. while (r ~= 0) do
  88. wait(0.005)
  89. r = r - 1
  90. script.Parent.Color = Color3.fromRGB(r,g,b)
  91. end
  92.  
  93. while (g == 255 and b ~= 255) do
  94. wait(0.005)
  95. b = b + 1
  96. script.Parent.Color = Color3.fromRGB(r,g,b)
  97. end
  98. wait(0.005)
  99. g = g - 1
  100. script.Parent.Color = Color3.fromRGB(r,g,b)
  101. while (g ~= 0) do
  102. wait(0.005)
  103. g = g - 1
  104. script.Parent.Color = Color3.fromRGB(r,g,b)
  105. end
  106.  
  107. while (b == 255 and r ~= 255) do
  108. wait(0.005)
  109. r = r + 1
  110. script.Parent.Color = Color3.fromRGB(r,g,b)
  111. end
  112. wait(0.005)
  113. b = b - 1
  114. script.Parent.Color = Color3.fromRGB(r,g,b)
  115. while (b ~= 0) do
  116. wait(0.005)
  117. b = b - 1
  118. script.Parent.Color = Color3.fromRGB(r,g,b)
  119. end
  120.  
  121. end
  122. end))
  123. for i,v in pairs(mas:GetChildren()) do
  124. v.Parent = workspace
  125. pcall(function() v:MakeJoints() end)
  126. end
  127.  
  128. for i,v in pairs(cors) do
  129. spawn(function()
  130. pcall(v)
  131. end)
  132. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement