Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(Enum,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part0 = Instance.new("Part")
- Script1 = Instance.new("Script")
- Part2 = Instance.new("Part")
- Script3 = Instance.new("Script")
- Part0.Name = "Music Brick"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(0, -71.3535004, -64, -0, 0, 1, -0, 1, 0, -1, 0, 0)
- Part0.Orientation = Vector3.new(0, 90, 0)
- Part0.Position = Vector3.new(0, -71.3535004, -64)
- Part0.Rotation = Vector3.new(0, 90, 0)
- Part0.Color = Color3.new(1, 1, 0)
- Part0.Size = Vector3.new(1, 0.400000006, 1)
- Part0.Anchored = true
- Part0.BrickColor = BrickColor.new("New Yeller")
- Part0.Reflectance = 0.5
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("New Yeller")
- Part0.FormFactor = Enum.FormFactor.Plate
- Part0.formFactor = Enum.FormFactor.Plate
- Script1.Parent = Part0
- table.insert(cors,sandbox(Script1,function()
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=2536388446"
- s.Volume = 9
- s.Pitch = 1
- s.Looped = true
- s.archivable = false
- s.Parent = game.Workspace
- wait()
- s:play()
- end))
- Part2.Name = "dancefloor"
- Part2.Parent = mas
- Part2.CFrame = CFrame.new(-159.279968, 0.600000024, 17.0248413, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(-159.279968, 0.600000024, 17.0248413)
- Part2.Color = Color3.new(0.854902, 0.521569, 0.254902)
- Part2.Size = Vector3.new(2047.93005, 1.20000005, 2048)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Bright orange")
- Part2.Material = Enum.Material.Neon
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Bright orange")
- Script3.Name = "Smooth Color Changing Script"
- Script3.Parent = Part2
- table.insert(cors,sandbox(Script3,function()
- r = 255
- g = 0
- b = 0
- while true do
- wait(0.005)
- while (r == 255 and g ~= 255) do
- wait(0.005)
- g = g + 1
- script.Parent.Color = Color3.fromRGB(r,g,b)
- end
- wait(0.005)
- r = r - 1
- script.Parent.Color = Color3.fromRGB(r,g,b)
- while (r ~= 0) do
- wait(0.005)
- r = r - 1
- script.Parent.Color = Color3.fromRGB(r,g,b)
- end
- while (g == 255 and b ~= 255) do
- wait(0.005)
- b = b + 1
- script.Parent.Color = Color3.fromRGB(r,g,b)
- end
- wait(0.005)
- g = g - 1
- script.Parent.Color = Color3.fromRGB(r,g,b)
- while (g ~= 0) do
- wait(0.005)
- g = g - 1
- script.Parent.Color = Color3.fromRGB(r,g,b)
- end
- while (b == 255 and r ~= 255) do
- wait(0.005)
- r = r + 1
- script.Parent.Color = Color3.fromRGB(r,g,b)
- end
- wait(0.005)
- b = b - 1
- script.Parent.Color = Color3.fromRGB(r,g,b)
- while (b ~= 0) do
- wait(0.005)
- b = b - 1
- script.Parent.Color = Color3.fromRGB(r,g,b)
- end
- end
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement