Advertisement
okban

test

Jan 25th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. function sandbox(var,func)
  2. local env = getfenv(func)
  3. local newenv = setmetatable({},{
  4. __index = function(self,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.Name = "Baseplate"
  19. Part0.Parent = mas
  20. Part0.BrickColor = BrickColor.new("Dark stone grey")
  21. Part0.Anchored = true
  22. Part0.Locked = true
  23. Part0.FormFactor = Enum.FormFactor.Symmetric
  24. Part0.Size = Vector3.new(512, 20, 512)
  25. Part0.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  26. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  27. Part0.Position = Vector3.new(0, -10, 0)
  28. Part0.Color = Color3.new(0.388235, 0.372549, 0.384314)
  29. for i,v in pairs(mas:GetChildren()) do
  30. v.Parent = workspace
  31. pcall(function() v:MakeJoints() end)
  32. end
  33. mas:Destroy()
  34. for i,v in pairs(cors) do
  35. spawn(function()
  36. pcall(v)
  37. end)
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement