Advertisement
Diamond_Nicholas

Untitled

Jan 28th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. return function()
  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. Part0.Parent = mas
  20. Part0.CFrame = CFrame.new(-6.15999985, 0.500003994, -11.5500002, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  21. Part0.Position = Vector3.new(-6.15999985, 0.500003994, -11.5500002)
  22. Part0.Size = Vector3.new(4, 1, 2)
  23. Part0.Anchored = true
  24. Part0.BottomSurface = Enum.SurfaceType.Smooth
  25. Part0.TopSurface = Enum.SurfaceType.Smooth
  26. for i,v in pairs(mas:GetChildren()) do
  27. v.Parent = workspace
  28. pcall(function() v:MakeJoints() end)
  29. end
  30. mas:Destroy(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
  31. for i,v in pairs(cors) do
  32. spawn(function()
  33. pcall(v)
  34. end)
  35. end
  36.  
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement