Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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")
- Script2 = Instance.new("Script")
- Part0.Name = "a"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(0, -6.85999966, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(0, -6.85999966, 0)
- Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part0.Size = Vector3.new(512, 26.2799988, 512)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.BrickColor = BrickColor.new("Dark stone grey")
- Part0.Locked = true
- Part0.Material = Enum.Material.Grass
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("Dark stone grey")
- Part0.FormFactor = Enum.FormFactor.Symmetric
- Part0.formFactor = Enum.FormFactor.Symmetric
- Script1.Parent = Part0
- table.insert(cors,sandbox(Script1,function()
- while wait() do
- script.Parent.Color = Color3.new(255/255,0/255,0/255)
- for i = 0,255,3 do
- wait()
- script.Parent.Color = Color3.new(255/255,i/255,0/255)
- end
- for i = 255,0,-3 do
- wait()
- script.Parent.Color = Color3.new(i/255,255/255,0/255)
- end
- for i = 0,255,3 do
- wait()
- script.Parent.Color = Color3.new(0/255,255/255,i/255)
- end
- for i = 255,0,-3 do
- wait()
- script.Parent.Color = Color3.new(0/255,i/255,255/255)
- end
- for i = 0,255,3 do
- wait()
- script.Parent.Color = Color3.new(i/255,0/255,255/255)
- end
- for i = 255,0,-3 do
- wait()
- script.Parent.Color = Color3.new(255/255,0/255,i/255)
- end
- end
- end))
- Script2.Name = "sound or song"
- Script2.Parent = Part0
- table.insert(cors,sandbox(Script2,function()
- --created by lukaslabrat
- local s = Instance.new("Sound")
- s.Name = "BGMusic"
- s.SoundId = "rbxassetid://2203600861" --if you want to change the music you must only change the id.
- s.Volume = 0.6 --the volume of the sound
- s.Looped = true
- s.archivable = false
- s.Parent = game.Workspace
- wait()-- time till the song plays again, make it 0.1 for it to loop
- s:play()
- --enjoy
- 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