Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. -- Thanks for using Mod2S by NopeUsername
  2. local functions = {}
  3. function sandbox(script, func)
  4. local OldEnv = getfenv(func)
  5.  
  6. local NewEnv = setmetatable({}, {
  7. __index = function(self,k)
  8. if k == "script" then
  9. return script
  10. else
  11. return OldEnv[k]
  12. end
  13. end,
  14. })
  15.  
  16. setfenv(func, NewEnv)
  17. return func
  18. end
  19.  
  20. local mas = Instance.new("Model", game:GetService("Lighting"))
  21. -- DECLARING VARIABLES"
  22.  
  23. local Tool = Instance.new("Tool")
  24. local Baseplate = Instance.new("Part")
  25.  
  26. -- SETTING PROPERTIES
  27.  
  28. Tool.Parent = mas
  29. Baseplate.Color = Color3.new(0.388235, 0.372549, 0.384314)
  30. Baseplate.CFrame = CFrame.new(0, -10, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  31. Baseplate.Name = "Baseplate"
  32. Baseplate.Locked = true
  33. Baseplate.Size = Vector3.new(512, 20, 512)
  34. Baseplate.BrickColor = BrickColor.new("Dark stone grey")
  35. Baseplate.Position = Vector3.new(0, -10, 0)
  36. Baseplate.Parent = Tool
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. for i,v in ipairs(functions) do
  45. spawn(function()
  46. pcall(v)
  47. end)
  48. end
  49.  
  50. for i,v in ipairs(mas:GetChildren()) do
  51. v.Parent = workspace
  52. end
  53. mas:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement