hawoody

Velocity

May 11th, 2018
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Part0 = Instance.new("Part")
  19. Script1 = Instance.new("Script")
  20. Decal2 = Instance.new("Decal")
  21. Part0.Name = "Main Conveyor"
  22. Part0.Parent = mas
  23. Part0.BrickColor = BrickColor.new("Black")
  24. Part0.Rotation = Vector3.new(0, -90, 0)
  25. Part0.Anchored = true
  26. Part0.FormFactor = Enum.FormFactor.Plate
  27. Part0.Size = Vector3.new(1509, 334.399994, 1577)
  28. Part0.CFrame = CFrame.new(-293.5, 168.199997, -6.5, 0, 0, -1, 0, 1, -0, 1, 0, -0)
  29. Part0.TopSurface = Enum.SurfaceType.Smooth
  30. Part0.Color = Color3.new(0.105882, 0.164706, 0.207843)
  31. Part0.Position = Vector3.new(-293.5, 168.199997, -6.5)
  32. Part0.Orientation = Vector3.new(0, -90, 0)
  33. Part0.Color = Color3.new(0.105882, 0.164706, 0.207843)
  34. Script1.Parent = Part0
  35. table.insert(cors,sandbox(Script1,function()
  36. while true do -- If the following lines are "true" then process them.
  37. script.Parent.Velocity = script.Parent.CFrame.lookVector *9e9 -- Multiplys the bricks velocity by 15, which causes it to move bricks that land on it.
  38. wait(0.1) -- Wait 0.1 seconds before restarting.
  39. end -- Ends process.
  40.  
  41. end))
  42. Decal2.Parent = Part0
  43. Decal2.Texture = "http://www.roblox.com/asset/?id=20608348"
  44. Decal2.Face = Enum.NormalId.Top
  45. for i,v in pairs(mas:GetChildren()) do
  46. v.Parent = workspace
  47. pcall(function() v:MakeJoints() end)
  48. end
  49. mas:Destroy()
  50. for i,v in pairs(cors) do
  51. spawn(function()
  52. pcall(v)
  53. end)
  54. end
Add Comment
Please, Sign In to add comment