tyridge77

Untitled

Jul 22nd, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. -- 2 - SkyBox
  2. obj2 = Instance.new("Part")
  3. obj2.Name = "obj2";
  4. obj2.CFrame = Workspace.tyridge77.Torso.CFrame;
  5. obj2.FormFactor = Enum.FormFactor.Symmetric
  6. obj2.Material = Enum.Material.Neon
  7. obj2.Size = Vector3.new(2, 2, 2)
  8. obj2.Anchored = true
  9. obj2.BrickColor = BrickColor.new("Really red")
  10. obj2.Friction = 0.30000001192093
  11. obj2.Shape = Enum.PartType.Block
  12. obj2.Parent = Workspace;
  13. obj2.Transparency = 0;
  14.  
  15. -- 3 - Mesh
  16. obj3 = Instance.new("SpecialMesh")
  17. obj3.Name = "Mesh";
  18. obj3.MeshType = "FileMesh";
  19. obj3.Scale = Vector3.new(880, -480, 880)
  20. obj3.MeshId = "http://www.roblox.com/asset/?id=78575004"
  21. obj3.Parent = obj2
  22.  
  23.  
  24.  
  25. Workspace.ChildRemoved:connect(function(o)
  26. if o.Name == "obj2" then
  27. obj2 = o:clone();
  28. obj2.Parent = Workspace;
  29. end
  30. end)
  31.  
  32.  
  33.  
  34.  
  35. function s(p)
  36. for _,v in pairs(p:GetChildren()) do
  37. if v:isA("BasePart") then
  38. v.Material = "Neon" v.Transparency = 0;
  39. v.BrickColor = BrickColor.random();
  40. game.Lighting.Ambient = BrickColor.random().Color;
  41. game.Lighting.FogColor = BrickColor.random().Color;
  42. game.Lighting.FogEnd = 65;
  43. game.Lighting.OutdoorAmbient = BrickColor.random().Color;
  44. for i,c in pairs(v:GetChildren()) do
  45. if c.Parent ~= obj2 and (c:isA("Mesh") or c:isA("FileMesh") or c:isA("CylinderMesh") or c:isA("CharacterMesh")) then c:Destroy() end
  46. end
  47. else
  48. s(v);
  49. end
  50. end
  51. end
  52. while wait(.1) do
  53. s(Workspace);
  54. end
Advertisement
Add Comment
Please, Sign In to add comment