Advertisement
Diamond_Nicholas

Untitled

Jan 28th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. function sandbox(var,func)
  2. local env = getfenv(func)
  3. local newenv = setmetatable({},{
  4. __index = function(Enum,k)
  5. if k=="script" then
  6. return var
  7. else
  8. return env[k]
  9. end
  10. end,
  11. })
  12. setfenv(func,newenv)
  13. return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Part0 = Instance.new("Part")
  18. Part0.Parent = mas
  19. Part0.CFrame = CFrame.new(-6.15999985, 0.500003994, -11.5500002, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  20. Part0.Position = Vector3.new(-6.15999985, 0.500003994, -11.5500002)
  21. Part0.Size = Vector3.new(4, 1, 2)
  22. Part0.Anchored = true
  23. Part0.BottomSurface = Enum.SurfaceType.Smooth
  24. Part0.TopSurface = Enum.SurfaceType.Smooth
  25. for i,v in pairs(mas:GetChildren()) do
  26. v.Parent = workspace
  27. pcall(function() v:MakeJoints() end)
  28. end
  29. for i,v in pairs(cors) do
  30. spawn(function()
  31. pcall(v)
  32. end)
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement