Advertisement
Diamond_Nicholas

test

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