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(self,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")
- Decal2 = Instance.new("Decal")
- Part0.Name = "Main Conveyor"
- Part0.Parent = mas
- Part0.BrickColor = BrickColor.new("Black")
- Part0.Rotation = Vector3.new(0, -90, 0)
- Part0.Anchored = true
- Part0.FormFactor = Enum.FormFactor.Plate
- Part0.Size = Vector3.new(1509, 334.399994, 1577)
- Part0.CFrame = CFrame.new(-293.5, 168.199997, -6.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part0.Position = Vector3.new(-293.5, 168.199997, -6.5)
- Part0.Orientation = Vector3.new(0, -90, 0)
- Part0.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Script1.Parent = Part0
- table.insert(cors,sandbox(Script1,function()
- while true do -- If the following lines are "true" then process them.
- script.Parent.Velocity = script.Parent.CFrame.lookVector *9e9 -- Multiplys the bricks velocity by 15, which causes it to move bricks that land on it.
- wait(0.1) -- Wait 0.1 seconds before restarting.
- end -- Ends process.
- end))
- Decal2.Parent = Part0
- Decal2.Texture = "http://www.roblox.com/asset/?id=20608348"
- Decal2.Face = Enum.NormalId.Top
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment