Webcat70

thumbnail skybox

Jul 29th, 2020 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local Lighting = game:GetService("Lighting")
  3.  
  4. local userId = 42288283
  5. local thumbType = Enum.ThumbnailType.AvatarThumbnail
  6. local thumbSize = Enum.ThumbnailSize.Size420x420
  7.  
  8. local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
  9. for i,v in pairs(Lighting:GetDescendants()) do
  10. if v:IsA("Sky") then
  11. v:Destroy()
  12. end
  13. end
  14. local sky = Instance.new("Sky")
  15. sky.CelestialBodiesShown = false
  16. sky.SkyboxBk = content
  17. sky.SkyboxDn = content
  18. sky.SkyboxFt = content
  19. sky.SkyboxLf = content
  20. sky.SkyboxRt = content
  21. sky.SkyboxUp = content
  22. sky.StarCount = 0
  23. sky.Parent = Lighting
Add Comment
Please, Sign In to add comment