Advertisement
KeroroGunso0

Space !

Jul 4th, 2015
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. game.Lighting.TimeOfDay = 0
  2. game.Lighting.Brightness = 0.3
  3. game.Lighting.ColorShift_Bottom = Color3.new(0.1,0.1,0.8)
  4. game.Lighting.ColorShift_Top = Color3.new(0.8,1,0.8)
  5. game.Lighting.Ambient = Color3.new(0.4,0.4,0.4)
  6.  
  7. function prop(part, parent, shape, collide, tran, ref, x, y, z, color, anchor)
  8. part.Parent = parent
  9. part.Shape = shape
  10. part.CanCollide = collide
  11. part.Transparency = tran
  12. part.Reflectance = ref
  13. part.Size = Vector3.new(x,y,z)
  14. part.BrickColor = BrickColor.new(color)
  15. part.TopSurface = 0
  16. part.BottomSurface = 0
  17. part.Anchored = anchor
  18. part.Locked = true
  19. part:BreakJoints()
  20. end
  21.  
  22. sc = {"Light blue", "Brick yellow", "New Yeller", "Institutional white", "Bright yellow", "White", "Paster yellow", "Neon orange"}
  23. pc = {"Bright green", "Brown", "Dark green", "CGA brown", "Black", "Really black", "Sand green", "Camo", "Br. yellowish green", "Nougat", "Earth green"}
  24.  
  25. for i=1, math.random(20,50) do
  26. local siz = math.random(300,500)
  27. local star = Instance.new("Part")
  28. prop(star,workspace,"Ball",true,0,0,1,1,1,sc[math.random(1,#sc)],true,"Symmetric")
  29. star.CFrame = CFrame.new(math.random(-20000,20000),math.random(1000,25000),math.random(-20000,20000))
  30. local sp = Instance.new("SpecialMesh",star)
  31. sp.MeshType = "Sphere"
  32. sp.Scale = Vector3.new(siz,siz,siz)
  33. for o=1, math.random(1,9) do
  34. wait()
  35. local si = math.random(60,160)
  36. local planet = Instance.new("Part")
  37. prop(planet,workspace,"Ball",false,0,0,1,1,1,pc[math.random(1,#pc)],true,"Symmetric")
  38. planet.CFrame = star.CFrame * CFrame.Angles(0,math.random(-320,320)/100,0) * CFrame.new(math.random(-20,20),math.random(-100,100),math.random(siz/2,siz*2))
  39. local sp = Instance.new("SpecialMesh",planet)
  40. sp.MeshType = "Sphere"
  41. sp.Scale = Vector3.new(si,si,si)
  42. end
  43. end
  44. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement