Advertisement
okban

4

Jan 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 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. Sky0 = Instance.new("Sky")
  18. Script1 = Instance.new("Script")
  19. Sound2 = Instance.new("Sound")
  20. Script3 = Instance.new("Script")
  21. Sky0.Parent = mas
  22. Sky0.MoonTextureId = "rbxassetid://1346184554"
  23. Script1.Parent = mas
  24. table.insert(cors,sandbox(Script1,function()
  25. game.Lighting.TimeOfDay = "-03:10:36"
  26. end))
  27. Sound2.Name = "Music"
  28. Sound2.Parent = mas
  29. Sound2.SoundId = "rbxassetid://875902584"
  30. Sound2.Volume = 5
  31. Sound2.Looped = true
  32. Script3.Parent = Sound2
  33. table.insert(cors,sandbox(Script3,function()
  34. while script.Parent.IsPlaying == false do
  35. wait()
  36. script.Parent:Play()
  37. end
  38.  
  39. -- Made by master3395
  40. end))
  41. for i,v in pairs(mas:GetChildren()) do
  42. v.Parent = game:GetService("Lighting")
  43. pcall(function() v:MakeJoints() end)
  44. end
  45. mas:Destroy()
  46. for i,v in pairs(cors) do
  47. spawn(function()
  48. pcall(v)
  49. end)
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement