Advertisement
Diamond_Nicholas

sky 2

Jan 30th, 2020
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(Enum,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Part0 = Instance.new("Part")
  20. Script1 = Instance.new("Script")
  21. Part0.Parent = mas
  22. Part0.CFrame = CFrame.new(17.2350311, 105.684937, 29.2550507, 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(17.2350311, 105.684937, 29.2550507)
  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(719.770081, 640.2099, 211.369965)
  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.  
  39. b = Instance.new("Sky")
  40. b.Parent = game.Lighting
  41. b.SkyboxBk = "rbxassetid://510033734"
  42. b.SkyboxDn = "rbxassetid://510033548"
  43. b.SkyboxFt = "rbxassetid://510033858"
  44. b.SkyboxLf = "rbxassetid://510033352"
  45. b.SkyboxRt = "rbxassetid://510033651"
  46. b.SkyboxUp = "rbxassetid://510033905"
  47. end
  48.  
  49. script.Parent.Touched:connect(onTouch)
  50. end))
  51. for i,v in pairs(mas:GetChildren()) do
  52. v.Parent = workspace
  53. pcall(function() v:MakeJoints() end)
  54. end
  55. for i,v in pairs(cors) do
  56. spawn(function()
  57. pcall(v)
  58. end)
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement