Advertisement
Diamond_Nicholas

w

Jan 30th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 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. Script2 = Instance.new("Script")
  22. Part0.Name = "Music Brick"
  23. Part0.Parent = mas
  24. Part0.CFrame = CFrame.new(74.7550964, 0.200000003, 57.1100616, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  25. Part0.Orientation = Vector3.new(0, 90, 0)
  26. Part0.Position = Vector3.new(74.7550964, 0.200000003, 57.1100616)
  27. Part0.Rotation = Vector3.new(0, 90, 0)
  28. Part0.Color = Color3.new(1, 1, 0)
  29. Part0.Size = Vector3.new(1016.02014, 0.400000006, 1563.56995)
  30. Part0.Anchored = true
  31. Part0.BrickColor = BrickColor.new("New Yeller")
  32. Part0.Material = Enum.Material.Neon
  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. Script2.Name = "Smooth Color Changing Script"
  58. Script2.Parent = Part0
  59. table.insert(cors,sandbox(Script2,function()
  60. r = 255
  61. g = 0
  62. b = 0
  63.  
  64. while true do
  65. wait(0.005)
  66.  
  67. while (r == 255 and g ~= 255) do
  68. wait(0.005)
  69. g = g + 1
  70. script.Parent.Color = Color3.fromRGB(r,g,b)
  71. end
  72. wait(0.005)
  73. r = r - 1
  74. script.Parent.Color = Color3.fromRGB(r,g,b)
  75. while (r ~= 0) do
  76. wait(0.005)
  77. r = r - 1
  78. script.Parent.Color = Color3.fromRGB(r,g,b)
  79. end
  80.  
  81. while (g == 255 and b ~= 255) do
  82. wait(0.005)
  83. b = b + 1
  84. script.Parent.Color = Color3.fromRGB(r,g,b)
  85. end
  86. wait(0.005)
  87. g = g - 1
  88. script.Parent.Color = Color3.fromRGB(r,g,b)
  89. while (g ~= 0) do
  90. wait(0.005)
  91. g = g - 1
  92. script.Parent.Color = Color3.fromRGB(r,g,b)
  93. end
  94.  
  95. while (b == 255 and r ~= 255) do
  96. wait(0.005)
  97. r = r + 1
  98. script.Parent.Color = Color3.fromRGB(r,g,b)
  99. end
  100. wait(0.005)
  101. b = b - 1
  102. script.Parent.Color = Color3.fromRGB(r,g,b)
  103. while (b ~= 0) do
  104. wait(0.005)
  105. b = b - 1
  106. script.Parent.Color = Color3.fromRGB(r,g,b)
  107. end
  108.  
  109. end
  110. end))
  111. for i,v in pairs(mas:GetChildren()) do
  112. v.Parent = workspace
  113. pcall(function() v:MakeJoints() end)
  114. end
  115. for i,v in pairs(cors) do
  116. spawn(function()
  117. pcall(v)
  118. end)
  119. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement