Advertisement
PhantomFood4

Untitled

Mar 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. local functions = {}
  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. local MotherModel = Instance.new("Model", game:GetService("Lighting"))
  17.  
  18. -- DECLARING VARIABLES (Must use global variables because Lua is limited to 200 local variables)
  19. UnionOperation0 = Instance.new("UnionOperation")
  20.  
  21. -- SETTING PROPERTIES
  22. UnionOperation0.CFrame = CFrame.new(-5.19999981, 5.00000477, -11.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  23. UnionOperation0.Color = Color3.new(1, 0, 0.74902)
  24. UnionOperation0.Material = Enum.Material.Neon
  25. UnionOperation0.Size = Vector3.new(6, 6, 6)
  26. UnionOperation0.Position = Vector3.new(-5.19999981, 5.00000477, -11.5)
  27. UnionOperation0.Transparency = 0.39999997615814
  28. UnionOperation0.Reflectance = 1
  29. UnionOperation0.BrickColor = BrickColor.new("Hot pink")
  30.  
  31.  
  32. UnionOperation0.Parent = MotherModel
  33.  
  34. for i,v in pairs(functions) do
  35. spawn(function()
  36. pcall(v)
  37. end)
  38. end
  39.  
  40. for i,v in pairs(MotherModel:GetChildren()) do
  41. v.Parent = workspace
  42. end
  43. MotherModel:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement