Advertisement
Diamond_Nicholas

sky 3

Jan 31st, 2020
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1.  
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(Enum,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. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Part0 = Instance.new("Part")
  19. Script1 = Instance.new("Script")
  20. Part0.Name = "a"
  21. Part0.Parent = mas
  22. Part0.CFrame = CFrame.new(-7.88313293, 61.6600494, 3.97468567, 0, -1, 5.06639481e-07, 0, 5.06639481e-07, 1, -1, 2.56683563e-13, 0)
  23. Part0.Orientation = Vector3.new(-90, 90, 0)
  24. Part0.Position = Vector3.new(-7.88313293, 61.6600494, 3.97468567)
  25. Part0.Rotation = Vector3.new(-90, 0, 90)
  26. Part0.Color = Color3.new(0.298039, 1, 0)
  27. Part0.Transparency = 1
  28. Part0.Size = Vector3.new(468.829742, 447.6008, 119.559792)
  29. Part0.Anchored = true
  30. Part0.BottomSurface = Enum.SurfaceType.Smooth
  31. Part0.BrickColor = BrickColor.new("Lime green")
  32. Part0.CanCollide = false
  33. Part0.TopSurface = Enum.SurfaceType.Smooth
  34. Part0.brickColor = BrickColor.new("Lime green")
  35. Script1.Parent = Part0
  36. table.insert(cors,sandbox(Script1,function()
  37. local function onTouch(hit)
  38. b = Instance.new("Sky")
  39. b.Parent = game.Lighting
  40. b.SkyboxBk = "http://www.roblox.com/asset/?id=60836400"
  41. b.SkyboxDn = "http://www.roblox.com/asset/?id=60836400"
  42. b.SkyboxFt = "http://www.roblox.com/asset/?id=60836400"
  43. b.SkyboxLf = "http://www.roblox.com/asset/?id=60836400"
  44. b.SkyboxRt = "http://www.roblox.com/asset/?id=60836400"
  45. b.SkyboxUp = "http://www.roblox.com/asset/?id=60836400"
  46. end
  47.  
  48. script.Parent.Touched:connect(onTouch)
  49. end))
  50. for i,v in pairs(mas:GetChildren()) do
  51. v.Parent = workspace
  52. pcall(function() v:MakeJoints() end)
  53. end
  54. for i,v in pairs(cors) do
  55. spawn(function()
  56. pcall(v)
  57. end)
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement