AlphaSploit

Trampoline

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