yamanohera155233

Untitled

Jun 18th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. scale = 100
  2.  
  3. maxscale = 500
  4.  
  5. if scale > maxscale then scale = maxscale end
  6. main = Vector3.new(40, 1.5, 0)
  7.  
  8. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  9. for i,v in pairs(workspace:children()) do if v.Name == "xS Tra" then v:remove() end end
  10. trampoline = Instance.new("Model",workspace)
  11. trampoline.Name = "xS Tra"
  12.  
  13. local strs = {}
  14.  
  15.  
  16. realscale = scale/2
  17. size1 = realscale/10
  18. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  19. local p = Instance.new("Part")
  20. p.formFactor = "Custom"
  21. p.Anchored = Anchor
  22. p.CanCollide = Collide
  23. p.Transparency = Tran
  24. p.Reflectance = Ref
  25. p.BrickColor = BrickColor.new(Color)
  26. for _, Surf in pairs(Surfaces) do
  27. p[Surf] = "Smooth"
  28. end
  29. p.Size = Vector3.new(X, Y, Z)
  30. if Break then
  31. p:BreakJoints()
  32. else p:MakeJoints() end
  33. p.Parent = Parent
  34. return p
  35. end
  36.  
  37. for i=0, 360, 20 do
  38.  
  39. local p = Part(trampoline, true, true, 0, 0, "Really black", realscale*0.37, size1, size1, true)
  40. p.CFrame = CFrame.new(main) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -realscale)
  41. local p2 = Part(trampoline, true, true, 0, 0, "Bright yellow", realscale*0.34, size1, realscale*1.3, true)
  42. p2.CFrame = p.CFrame * CFrame.new(0, 0, (realscale*1.3))
  43. end
  44.  
  45. for i = -realscale/2.3, realscale/2.3+0.01, realscale/2.3*2 do
  46. local p = Part(trampoline, true, true, 0, 0, "Really black", realscale*0.55, size1, size1, true)
  47. p.CFrame = CFrame.new(main) * CFrame.new(i+size1, 0.1, realscale*0.15)
  48. for x = -110, 110, 20 do
  49.  
  50. local p2 = Part(trampoline, true, true, 0, 0, "Really black", realscale*0.116, size1, size1, true)
  51. p2.CFrame = p.CFrame * CFrame.new(0, 0, realscale*0.116) * CFrame.Angles(0, math.rad(x), 0) * CFrame.new(0, 0, realscale*0.55/2)
  52. local p3 = Part(trampoline, true, true, 0, 0, "Institutional white", realscale*0.14, size1, realscale*0.25, true)
  53. p3.CFrame = p2.CFrame * CFrame.new(0, -0.03, -(p3.Size.Z/2)-(p2.Size.Z/2))
  54. end
  55. for x = 0, 360, 40 do
  56.  
  57. local p2 = Part(trampoline, true, true, 0, 0, "Really black", size1/2.7, size1, size1*2, true)
  58. p2.CFrame = p.CFrame * CFrame.new(-size1*1.3, 0, size1*2.4) * CFrame.Angles(0, math.rad(x), 0)
  59. end
  60. end
  61.  
  62. local p = Part(trampoline, true, true, 0, 0, "Really black", realscale*1.4, size1, size1, true)
  63. p.CFrame = CFrame.new(main) * CFrame.new(size1*1.2, 0.1, -size1*0.8)
  64.  
  65. for i = -90, 90, 20 do
  66.  
  67. local p2 = Part(trampoline, true, true, 0, 0, "Really black", realscale*0.255, size1, size1, true)
  68. p2.CFrame = p.CFrame * CFrame.new(-size1*0.7, 0, -size1*0.8) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -p.Size.X/2.1)
  69. local p3 = Part(trampoline, true, true, 0, 0, "Tr. Red", realscale*0.25, size1, p.Size.X/2, true)
  70. p3.CFrame = p2.CFrame * CFrame.new(0, -0.03, p3.Size.Z/2)
  71. end
  72.  
  73. for i = -50, 90, 20 do
  74.  
  75. local p2 = Part(trampoline, true, true, 0, 0, "Light reddish violet", size1*1.45, size1, size1*4.5, true)
  76. p2.CFrame = p.CFrame * CFrame.new(-size1*2.8, -0.015, -size1*6.5) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, p2.Size.Z/2.6)
  77. end
  78.  
  79. wait(5) print(trampoline.Parent)
Add Comment
Please, Sign In to add comment