Advertisement
KeroroGunso0

trampline

Mar 5th, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1.  
  2.  
  3. main = Vector3.new(40, 1.5, 0)
  4. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  5.  
  6. trampoline = Instance.new("Model")
  7. trampoline.Name = "xS Tr"
  8.  
  9. local strs = {}
  10.  
  11. for i,v in pairs(workspace:children()) do if v.Name == "xS Tr" then v:remove() end end
  12. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  13. local p = Instance.new("Part")
  14. p.formFactor = "Custom"
  15. p.Anchored = Anchor
  16. p.CanCollide = Collide
  17. p.Transparency = Tran
  18. p.Reflectance = Ref
  19. p.BrickColor = BrickColor.new(Color)
  20. for _, Surf in pairs(Surfaces) do
  21. p[Surf] = "Smooth"
  22. end
  23. p.Size = Vector3.new(X, Y, Z)
  24. if Break then
  25. p:BreakJoints()
  26. else p:MakeJoints() end
  27. p.Parent = Parent
  28. return p
  29. end
  30.  
  31. for i = 0, 360, 120 do
  32. local holder = Part(trampoline, true, true, 0, 0, "Medium grey", 10, 0.8, 0.8, true)
  33. holder.CFrame = CFrame.new(main) * CFrame.Angles(0,math.rad(i),0) * CFrame.new(0,0,-12)
  34. for x = 0, math.pi, math.pi do
  35. for y = 0, 90, 15 do
  36. local p = Part(trampoline, true, true, 0, 0, "Medium grey", 0.8, 0.8, 0.8, true)
  37. p.CFrame = holder.CFrame * CFrame.Angles(0, x, 0) * CFrame.new(5,2,0) * CFrame.Angles(0,0,math.rad(-y)) * CFrame.new(2,0,0)
  38. end
  39. local p = Part(trampoline, true, true, 0, 0, "Medium grey", 0.8, 2.2, 0.8, true)
  40. p.CFrame = holder.CFrame * CFrame.Angles(0, x, 0) * CFrame.new(7,3,0)
  41. end
  42. end
  43.  
  44. for i = 0, 360, 20 do
  45. local p = Part(trampoline, true, true, 0, 0, "Medium grey", 5, 0.8, 0.8, true)
  46. p.CFrame = CFrame.new(main) * CFrame.Angles(0,math.rad(i),0) * CFrame.new(0,4,-13.75)
  47. local b = Part(trampoline, true, true, 0, 0, "Bright blue", 10, 0.8, 4.5, true)
  48. b.CFrame = p.CFrame * CFrame.new(0,0.55,1.4)
  49. Instance.new("SpecialMesh",b).MeshType = "Sphere"
  50. for x = -1.25, 1.3, 2.5 do
  51. local p2 = Part(trampoline, true, true, 0, 0, "Medium grey", 0.5, 0.5, 2, true)
  52. p2.CFrame = p.CFrame * CFrame.new(x,0,1.5)
  53. local m = Instance.new("SpecialMesh",p2)
  54. m.MeshId = "http://www.roblox.com/asset/?id=16606212"
  55. m.Scale = Vector3.new(0.3, 0.3, 0.7)
  56. end
  57. for x = 2.3, 14.3, 1.5 do
  58. local p2 = Part(trampoline, true, true, 0, 0, "Black", 5+1.5-(x/2.4), 0.3, 1.8, true)
  59. p2.CFrame = p.CFrame * CFrame.new(0,0.4,x)
  60. table.insert(strs, p2)
  61. end
  62. end
  63.  
  64. trampoline.Parent = workspace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement