Advertisement
yudhaprawira

bike

Jun 29th, 2016
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----------------------------------[[mediafire]]---------------------------------------------------------------------------------------------------------------------------------------------------------------------Epicness------------------------------------------------
  2. local user = "yudhaprawira"
  3. local players = game:service("player")
  4. local player = players[yudhaprawira]
  5. local char = player.Character
  6. local pg = player.PlayerGui
  7. local attacking = false
  8. local torso = char.Torso
  9. local rarm = char["Right Arm"]
  10. local larm = char["Left Arm"]
  11. local lleg = char["Left Leg"]
  12. local rleg = char["Right Leg"]
  13. local head = char.Head
  14. local color = "Really black"
  15. local color2 = "Really red"
  16. local charge = 100
  17. local maxcharge = 100
  18. local left = false
  19. local right = false
  20. local forw = false
  21. local backw = false
  22. local fly = false
  23. pcall(function() torso.Derppos:remove() end)
  24. local bp = Instance.new("BodyPosition", torso)
  25. bp.maxForce = Vector3.new(0, 0, 0)
  26. bp.Name = "Derppos"
  27. bp.position = torso.Position
  28. pcall(function()
  29. head.face:remove()
  30. end)
  31. pcall(function()
  32. char.Shirt:remove()
  33. end)
  34. pcall(function()
  35. char.Pants:remove()
  36. end)
  37. for _,v in pairs(char:children()) do
  38. pcall(function()
  39. if v.className == "Hat" then
  40. v:remove()
  41. end
  42. end)
  43. end
  44. ids = {
  45. chakram = "http://www.roblox.com/asset/?id=47260990",
  46. chakram2 = "http://www.roblox.com/asset/?id=22768172",
  47. snowflake = "http://www.roblox.com/asset/?id=19251107",
  48. diamond = "http://www.roblox.com/Asset/?id=9756362",
  49. ring = "http://www.roblox.com/asset/?id=3270017",
  50. spike = "http://www.roblox.com/asset/?id=1033714",
  51. tornado = "http://www.roblox.com/asset/?id=1051557",
  52. spiker = "http://www.roblox.com/asset/?id=15158276",
  53. }
  54. function create(prt, parent, siz, cf, can, col, anc, brea, tran, ref, form, weld, part1, cf2, mesh, sca, type, id, bckup)
  55. part = Instance.new(prt)
  56. part.formFactor = form
  57. part.BrickColor = BrickColor.new(col)
  58. part.Size = siz
  59. part.Anchored = anc
  60. part.Transparency = tran
  61. part.Name = "ShipPart"
  62. part.Reflectance = ref
  63. part.CFrame = cf
  64. part.CanCollide = can
  65. part.TopSurface = "Smooth"
  66. part.BottomSurface = "Smooth"
  67. if brea == true then
  68. part:BreakJoints()
  69. end
  70. if weld == true then
  71. weld = Instance.new("Weld")
  72. weld.Part0 = part
  73. weld.Part1 = part1
  74. weld.C1 = cf2
  75. weld.Parent = part
  76. end
  77. if mesh ~= nil then
  78. mesh = Instance.new(mesh)
  79. mesh.Scale = sca
  80. if bckup == true then
  81. mesh.MeshType = "Sphere"
  82. end
  83. if mesh == "SpecialMesh" then
  84. mesh.MeshType = type
  85. pcall(function()
  86. if type == "FileMesh" then
  87. mesh.MeshType = "FileMesh"
  88. mesh.MeshId = id
  89. end
  90. end)
  91. end
  92. mesh.Parent = part
  93. end
  94. part.Parent = parent
  95.         return part
  96. end
  97. pcall(function()
  98. char.mod:remove()
  99. char.Welds:remove()
  100. end)
  101. local model = Instance.new("Model", char)
  102. model.Name = "mod"
  103. local Model = Instance.new("Model", model)
  104. Model.Name = "Welds"
  105. local RAB = Instance.new("Part") -- Right Arm Brick
  106. RAB.formFactor = "Custom"
  107. RAB.Size = Vector3.new(0.2, 0.2, 0.2)
  108. RAB.Transparency = 1
  109. RAB.Parent = Model
  110. RAB:BreakJoints()
  111. local RABW = Instance.new("Weld",RAB) -- Right Arm Brick Weld
  112. RABW.Part0 = torso
  113. RABW.Part1 = RAB
  114. RABW.C1 = CFrame.new(-1.5, -0.5, 0)
  115. local LAB = Instance.new("Part") -- Right Arm Brick
  116. LAB.formFactor = "Custom"
  117. LAB.Size = Vector3.new(0.2, 0.2, 0.2)
  118. LAB.Transparency = 1
  119. LAB.Parent = Model
  120. LAB:BreakJoints()
  121. local LABW = Instance.new("Weld",LAB) -- Left Arm Brick Weld
  122. LABW.Part0 = torso
  123. LABW.Part1 = LAB
  124. LABW.C1 = CFrame.new(1.5, -0.5, 0)
  125. local RAW = Instance.new("Weld",RAB) -- Right Arm Weld
  126. RAW.Part0 = RAB
  127. RAW.Part1 = nil
  128. RAW.C1 = CFrame.new(0, 0.5, 0)
  129. local LAW = Instance.new("Weld",LAB) -- Left Arm Weld
  130. LAW.Part0 = LAB
  131. LAW.Part1 = nil
  132. LAW.C1 = CFrame.new(0, 0.5, 0)
  133. --suit
  134. local helm = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, head, CFrame.new(0.25, 0.2, -0.5)*CFrame.Angles(math.rad(90), math.rad(45), math.rad(135)), "SpecialMesh", Vector3.new(0.15, 0.35, 0.5), "FileMesh", ids.diamond, false)
  135. helm.Mesh.MeshType = "FileMesh"
  136. helm.Mesh.MeshId = ids.diamond
  137. local helm2 = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, head, CFrame.new(-0.25, 0.2, -0.5)*CFrame.Angles(math.rad(90), math.rad(-45), math.rad(-135)), "SpecialMesh", Vector3.new(0.15, 0.35, 0.5), "FileMesh", ids.diamond, false)
  138. helm2.Mesh.MeshType = "FileMesh"
  139. helm2.Mesh.MeshId = ids.diamond
  140. local helm3 = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, head, CFrame.new(0, -0.45, 0)*CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1.25, 1.25, 1.25), "FileMesh", ids.diamond, false)
  141. helm3.Mesh.MeshType = "FileMesh"
  142. helm3.Mesh.MeshId = ids.ring
  143. local helm4 = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, head, CFrame.new(0, 0.45, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(0.75, 3, 0.75), "FileMesh", ids.diamond, false)
  144. helm4.Mesh.MeshType = "FileMesh"
  145. helm4.Mesh.MeshId = ids.snowflake
  146. local symb1 = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, torso, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1.25, 1.25, 7), "FileMesh", ids.diamond, false)
  147. symb1.Mesh.MeshType = "FileMesh"
  148. symb1.Mesh.MeshId = ids.ring
  149. local symb2 = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, torso, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1.2, 1.2, 7), "FileMesh", ids.diamond, false)
  150. symb2.Mesh.MeshType = "FileMesh"
  151. symb2.Mesh.MeshId = ids.ring
  152. local symb3 = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, torso, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1.15, 1.15, 7), "FileMesh", ids.diamond, false)
  153. symb3.Mesh.MeshType = "FileMesh"
  154. symb3.Mesh.MeshId = ids.ring
  155. local symb4 = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color2, false, true, 0.5, 0, "Custom", true, torso, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(2.15, 2.15, 1.25), "Sphere", ids.diamond, true)
  156. local symb5 = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, torso, CFrame.new(0, 0, 0.5)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 1, 1), "FileMesh", ids.diamond, false)
  157. symb5.Mesh.MeshType = "FileMesh"
  158. symb5.Mesh.MeshId = ids.chakram
  159. local symb6 = create("Part", model, Vector3.new(1, 1, 1), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, torso, CFrame.new(0, 0, -0.5)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 1, 1), "FileMesh", ids.diamond, false)
  160. symb6.Mesh.MeshType = "FileMesh"
  161. symb6.Mesh.MeshId = ids.chakram
  162. --wep1
  163. local han = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, rarm, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), "CylinderMesh", Vector3.new(1.5, 2, 1.5), "Sphere", df, false)
  164. local han2 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(0.3, 1.75, 0.3), "FileMesh", ids.diamond, false)
  165. han2.Mesh.MeshType = "FileMesh"
  166. han2.Mesh.MeshId = ids.tornado
  167. local han3 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(0.25, 0.3, 0.25), "FileMesh", ids.diamond, false)
  168. han3.Mesh.MeshType = "FileMesh"
  169. han3.Mesh.MeshId = ids.spiker
  170. local han4 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 1, 1), "FileMesh", ids.diamond, false)
  171. han4.Mesh.MeshType = "Wedge"
  172. local han5 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, 2, 0.05)*CFrame.Angles(math.rad(6.125), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 2, 1), "FileMesh", ids.diamond, false)
  173. han5.Mesh.MeshType = "Wedge"
  174. local han6 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, 2.5, 0.1)*CFrame.Angles(math.rad(12.25), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 2, 1), "FileMesh", ids.diamond, false)
  175. han6.Mesh.MeshType = "Wedge"
  176. local han7 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, 3, 0.2)*CFrame.Angles(math.rad(18.5), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 2, 1), "FileMesh", ids.diamond, false)
  177. han7.Mesh.MeshType = "Wedge"
  178. local han8 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, 1.5, -0.05)*CFrame.Angles(math.rad(-185), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 1.25, 1), "FileMesh", ids.diamond, false)
  179. han8.Mesh.MeshType = "Wedge"
  180. --
  181. local han9 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, -1.5, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(180)), "SpecialMesh", Vector3.new(1, 1, 1), "FileMesh", ids.diamond, false)
  182. han9.Mesh.MeshType = "Wedge"
  183. local han10 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, -2, 0.1)*CFrame.Angles(math.rad(180-6.125), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 2, 1), "FileMesh", ids.diamond, false)
  184. han10.Mesh.MeshType = "Wedge"
  185. local han11 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, -2.5, 0.15)*CFrame.Angles(math.rad(180-12.25), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 2, 1), "FileMesh", ids.diamond, false)
  186. han11.Mesh.MeshType = "Wedge"
  187. local han12 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, -3, 0.2)*CFrame.Angles(math.rad(180-18.5), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 2, 1), "FileMesh", ids.diamond, false)
  188. han12.Mesh.MeshType = "Wedge"
  189. local han13 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, -1.5, -0.1)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 1.25, 1), "FileMesh", ids.diamond, false)
  190. han13.Mesh.MeshType = "Wedge"
  191. local han14 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, han, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(0.25, 0.3, 0.25), "FileMesh", ids.diamond, false)
  192. han14.Mesh.MeshType = "FileMesh"
  193. han14.Mesh.MeshId = ids.spiker
  194. --wep2
  195. local dhan = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, larm, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), "CylinderMesh", Vector3.new(1.5, 1.25, 1.5), "Sphere", df, false)
  196. local dhan2 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color, false, true, 0, 0, "Custom", true, dhan, CFrame.new(0, -0.65, 0)*CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(0.25, 0.3, 0.25), "Sphere", df, false)
  197. dhan2.Mesh.MeshType = "FileMesh"
  198. dhan2.Mesh.MeshId = ids.diamond
  199. local dhan3 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, dhan, CFrame.new(0, -1.25, 0)*CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 1.25, 1), "FileMesh", ids.diamond, false)
  200. dhan3.Mesh.MeshType = "Wedge"
  201. local dhan4 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, dhan, CFrame.new(0, -1.25, 0)*CFrame.Angles(math.rad(180), math.rad(180), math.rad(0)), "SpecialMesh", Vector3.new(1, 1.25, 1), "FileMesh", ids.diamond, false)
  202. dhan4.Mesh.MeshType = "Wedge"
  203. local dhan5 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, dhan, CFrame.new(0, -2.5, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 1.25, 1), "FileMesh", ids.diamond, false)
  204. dhan5.Mesh.MeshType = "Wedge"
  205. local dhan6 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, dhan, CFrame.new(0, -2.5, 0)*CFrame.Angles(math.rad(0), math.rad(-180), math.rad(0)), "SpecialMesh", Vector3.new(1, 1.25, 1), "FileMesh", ids.diamond, false)
  206. dhan6.Mesh.MeshType = "Wedge"
  207. local dhan7 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color, false, true, 0.5, 0, "Custom", true, dhan, CFrame.new(0, -1.85, 0)*CFrame.Angles(math.rad(0), math.rad(-180), math.rad(0)), "SpecialMesh", Vector3.new(0.2, 1, 0.15), "FileMesh", ids.diamond, false)
  208. dhan7.Mesh.MeshType = "FileMesh"
  209. dhan7.Mesh.MeshId = ids.diamond
  210. local dhan8 = create("Part", model, Vector3.new(0.2, 1, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, dhan, CFrame.new(0, -1.75, 0.15)*CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 2.5, 0.5), "FileMesh", ids.diamond, false)
  211. dhan8.Mesh.MeshType = "Wedge"
  212. local dhan8 = create("Part", model, Vector3.new(0.2, 0.2, 0.2), CFrame.new(0, 0, 0), false, color2, false, true, 0, 0, "Custom", true, dhan, CFrame.new(0, -3.225, 0)*CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(1, 1, 1), "FileMesh", ids.diamond, false)
  213. dhan8.Mesh.MeshType = "Wedge"
  214. --cycle
  215. local base = create("Part", model, Vector3.new(5, 7, 2), CFrame.new(0, 15, 25), false, color, false, true, 1, 0, "Custom", false, nil, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "BlockMesh", Vector3.new(1, 1, 1), "Sphere", df, false)
  216. local baseg = Instance.new("BodyGyro", base)
  217. baseg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  218. local basep = Instance.new("BodyPosition", base)
  219. basep.maxForce = Vector3.new(0, math.huge, 0)
  220. basep.position = Vector3.new(0, 8, 0)
  221. local basef = Instance.new("BodyVelocity")
  222. basef.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  223. basef.velocity = Vector3.new(0, 0, 0)
  224. basef.Parent = base
  225. local base2 = create("Part", model, Vector3.new(5, 10, 2), CFrame.new(0, 15, 25), true, color, false, true, 0, 0, "Custom", true, base, CFrame.new(0, -2, 3)*CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)), "BlockMesh", Vector3.new(1, 1, 1), "Sphere", df, false)
  226. local base3 = create("Part", model, Vector3.new(5, 10, 2), CFrame.new(0, 15, 25), true, color, false, true, 0, 0, "Custom", true, base, CFrame.new(0, -2, -3)*CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)), "BlockMesh", Vector3.new(1, 1, 1), "Sphere", df, false)
  227. local base4 = create("Part", model, Vector3.new(5, 10, 2), CFrame.new(0, 15, 25), true, color, false, true, 0, 0, "Custom", true, base, CFrame.new(0, 4, 3)*CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0)), "BlockMesh", Vector3.new(1, 1, 1), "Sphere", df, false)
  228. local base5 = create("Part", model, Vector3.new(5, 10, 2), CFrame.new(0, 15, 25), true, color, false, true, 0, 0, "Custom", true, base, CFrame.new(0, 4, -3)*CFrame.Angles(math.rad(45), math.rad(0), math.rad(0)), "BlockMesh", Vector3.new(1, 1, 1), "Sphere", df, false)
  229. local base6 = create("Part", model, Vector3.new(5, 10, 5), CFrame.new(0, 15, 25), true, color, false, true, 0, 0, "Custom", true, base, CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(7, 7, 7), "Sphere", df, false)
  230. base6.Mesh.MeshType = "FileMesh"
  231. base6.Mesh.MeshId = ids.diamond
  232. local base7 = create("Part", model, Vector3.new(5, 2, 5), CFrame.new(0, 15, 25), true, color2, false, true, 0, 0, "Custom", true, base, CFrame.new(0, 7, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "BlockMesh", Vector3.new(1.1, 1.1, 1.1), "Sphere", df, false)
  233. local base8 = create("Part", model, Vector3.new(5, 2, 10), CFrame.new(0, 15, 25), true, color2, false, true, 0, 0, "Custom", true, base, CFrame.new(0, 5, -2)*CFrame.Angles(math.rad(-22.5), math.rad(0), math.rad(0)), "BlockMesh", Vector3.new(1.1, 1.1, 1.1), "Sphere", df, false)
  234. local base9 = create("Part", model, Vector3.new(5, 2, 10), CFrame.new(0, 15, 25), true, color2, false, true, 0, 0, "Custom", true, base, CFrame.new(0, 5, 2)*CFrame.Angles(math.rad(22.5), math.rad(0), math.rad(0)), "BlockMesh", Vector3.new(1.1, 1.1, 1.1), "Sphere", df, false)
  235. local base10 = create("Part", model, Vector3.new(5, 2, 5), CFrame.new(0, 15, 25), true, color2, false, true, 0, 0, "Custom", true, base, CFrame.new(0, 7, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(5, 10, 5), "Sphere", df, false)
  236. base10.Mesh.MeshType = "FileMesh"
  237. base10.Mesh.MeshId = ids.snowflake
  238. local base11 = create("Seat", model, Vector3.new(5, 2, 5), CFrame.new(0, 15, 25), false, color2, false, true, 0, 0, "Custom", true, base, CFrame.new(0, 7.5, 0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "SpecialMesh", Vector3.new(5, 15, 10), "Sphere", df, false)
  239. base11.Mesh.MeshType = "FileMesh"
  240. base11.Mesh.MeshId = ids.ring
  241. local base12 = create("Part", model, Vector3.new(1, 2, 1), CFrame.new(0, 15, 25), false, color, false, true, 0, 0, "Custom", true, base, CFrame.new(1.5, 7.5, -1.5)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "CylinderMesh", Vector3.new(0.5, 1, 0.5), "Sphere", df, false)
  242. local base13 = create("Part", model, Vector3.new(1, 2, 1), CFrame.new(0, 15, 25), false, color, false, true, 0, 0, "Custom", true, base, CFrame.new(-1.5, 7.5, -1.5)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), "CylinderMesh", Vector3.new(0.5, 1, 0.5), "Sphere", df, false)
  243. local w = create("Part", model, Vector3.new(5, 10, 2), CFrame.new(0, 15, 25), false, color, false, true, 0, 0, "Custom", true, base, CFrame.new(0, -3, 8)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), "SpecialMesh", Vector3.new(5, 10, 5), "Sphere", df, false)
  244. w.Mesh.MeshType = "FileMesh"
  245. w.Mesh.MeshId = ids.spiker
  246. local w2 = create("Part", model, Vector3.new(4, 4, 4), CFrame.new(0, 15, 25), false, color, false, true, 0, 0, "Custom", true, base, CFrame.new(0, -3, -8)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), "SpecialMesh", Vector3.new(5, 10, 5), "Sphere", df, false)
  247. w2.Mesh.MeshType = "FileMesh"
  248. w2.Mesh.MeshId = ids.spiker
  249. local w3 = create("Part", model, Vector3.new(5, 10, 2), CFrame.new(0, 15, 25), false, color, false, true, 0, 0, "Custom", true, base, CFrame.new(0, -3, 8)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), "SpecialMesh", Vector3.new(7, 7, 7), "Sphere", df, false)
  250. w3.Mesh.MeshType = "FileMesh"
  251. w3.Mesh.MeshId = ids.chakram
  252. local w4 = create("Part", model, Vector3.new(4, 4, 4), CFrame.new(0, 15, 25), false, color, false, true, 0, 0, "Custom", true, base, CFrame.new(0, -3, -8)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), "SpecialMesh", Vector3.new(7, 7, 7), "Sphere", df, false)
  253. w4.Mesh.MeshType = "FileMesh"
  254. w4.Mesh.MeshId = ids.chakram
  255. local w5 = create("Part", model, Vector3.new(5, 10, 2), CFrame.new(0, 15, 25), false, color, false, true, 0, 0, "Custom", true, base, CFrame.new(1, -3, 8)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), "SpecialMesh", Vector3.new(7, 7, 7), "Sphere", df, false)
  256. w5.Mesh.MeshType = "FileMesh"
  257. w5.Mesh.MeshId = ids.chakram
  258. local w6 = create("Part", model, Vector3.new(4, 4, 4), CFrame.new(0, 15, 25), false, color, false, true, 0, 0, "Custom", true, base, CFrame.new(1, -3, -8)*CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), "SpecialMesh", Vector3.new(7, 7, 7), "Sphere", df, false)
  259. w6.Mesh.MeshType = "FileMesh"
  260. w6.Mesh.MeshId = ids.chakram
  261. --funcs
  262. function turnl()
  263. baseg.cframe = baseg.cframe * CFrame.Angles(0, 0.0628, 0)
  264. end
  265. function turnr()
  266. baseg.cframe = baseg.cframe * CFrame.Angles(0, -0.0628, 0)
  267. end
  268. function forward()
  269. basef.velocity = base.CFrame.lookVector * 50
  270. w.Weld.C0 = w.Weld.C0 * CFrame.Angles(0, 0.314, 0)
  271. w2.Weld.C0 = w2.Weld.C0 * CFrame.Angles(0, 0.314, 0)
  272. w3.Weld.C0 = w3.Weld.C0 * CFrame.Angles(0, 0, 0.314)
  273. w4.Weld.C0 = w4.Weld.C0 * CFrame.Angles(0, 0, 0.314)
  274. w5.Weld.C0 = w5.Weld.C0 * CFrame.Angles(0, 0, 0.314)
  275. w6.Weld.C0 = w6.Weld.C0 * CFrame.Angles(0, 0, 0.314)
  276. end
  277. function backward()
  278. basef.velocity = base.CFrame.lookVector * -50
  279. w.Weld.C0 = w.Weld.C0 * CFrame.Angles(0, -0.314, 0)
  280. w2.Weld.C0 = w2.Weld.C0 * CFrame.Angles(0, -0.314, 0)
  281. w3.Weld.C0 = w3.Weld.C0 * CFrame.Angles(0, 0, -0.314)
  282. w4.Weld.C0 = w4.Weld.C0 * CFrame.Angles(0, 0, -0.314)
  283. w5.Weld.C0 = w5.Weld.C0 * CFrame.Angles(0, 0, -0.314)
  284. w6.Weld.C0 = w6.Weld.C0 * CFrame.Angles(0, 0, -0.314)
  285. end
  286. function spark(st)
  287.         coroutine.resume(coroutine.create(function()
  288.         local pos = st.Position - Vector3.new(0, 1, 0)
  289.         local lastpos = nil
  290.         local part = Instance.new("Part", workspace)
  291.         part.formFactor = "Custom"
  292.         part.Size = Vector3.new(0.2, 0.2, 0.2)
  293.         part.Anchored = true
  294.         part.Transparency = 1
  295.         part.BrickColor = BrickColor.new(color2)
  296.         part.CanCollide = false
  297.         part.CFrame = CFrame.new(pos)
  298.         lastpos = pos
  299. for i = 1, 50 do
  300.         pos = st.Position - Vector3.new(0, 1, 0) + Vector3.new(math.random(-1.5, 1.5), math.random(-1.5, 1.5), math.random(-1.5, 1.5))
  301.         part.Size = Vector3.new(0.2, 0.2, (pos - lastpos).magnitude)
  302.         part.CFrame = CFrame.new((pos + lastpos)/2, pos)
  303.         part.Transparency = 0
  304.         lastpos = pos
  305.         wait()
  306.         end
  307. part:remove()
  308.         end))
  309. end
  310. function shoot()
  311. for i = 1, 5 do
  312. local shot = han3:clone()
  313. shot.Parent = workspace
  314. shot:BreakJoints()
  315. shot.Anchored = true
  316. shot.CFrame = han3.CFrame
  317. local shot2 = han14:clone()
  318. shot2.Parent = workspace
  319. shot2:BreakJoints()
  320. shot2.Anchored = true
  321. shot2.CFrame = han14.CFrame
  322. coroutine.resume(coroutine.create(function()
  323. spark(shot)
  324. for i = 1, 50 do
  325. shot.CFrame = shot.CFrame * CFrame.new(0, 0.01, -0.314*2)
  326. shot.Mesh.Scale = shot.Mesh.Scale + Vector3.new(0.0314, 0, 0.0314)
  327. shot2.CFrame = shot2.CFrame * CFrame.new(0, 0.01, 0.314*2)
  328. shot2.Mesh.Scale = shot2.Mesh.Scale + Vector3.new(0.0314, 0, 0.0314)
  329. wait()
  330. end
  331. shot:remove()
  332. shot2:remove()
  333. end))
  334. wait()
  335. end
  336. end
  337. function select()
  338. RAW.Part1 = rarm
  339. LAW.Part1 = larm
  340. for i = 0, 1, 0.1 do
  341. RAW.C0 = CFrame.new() * CFrame.Angles(math.rad(90*i), 0, 0)
  342. wait()
  343. end
  344. end
  345. function deselect()
  346. for i = 0, 1, 0.1 do
  347. RAW.C0 = CFrame.new() * CFrame.Angles(math.rad(90-90*i), 0, 0)
  348. wait()
  349. end
  350. RAW.Part1 = nil
  351. LAW.Part1 = nil
  352. end
  353. --loops
  354. coroutine.resume(coroutine.create(function()
  355. while wait() do
  356. symb5.Weld.C0 = symb5.Weld.C0 * CFrame.Angles(0, 0, -0.314)
  357. symb6.Weld.C0 = symb6.Weld.C0 * CFrame.Angles(0, 0, -0.314)
  358. end
  359. end))
  360. coroutine.resume(coroutine.create(function()
  361. while wait() do
  362. if fly == true then
  363. bp.maxForce = Vector3.new(0, math.huge, 0)
  364. bp.position = torso.Position + Vector3.new(0, 0.5, 0)
  365. helm4.Weld.C0 = helm4.Weld.C0 * CFrame.Angles(0, 0.314, 0)
  366. else
  367. bp.maxForce = Vector3.new(0, 0, 0)
  368. bp.position = torso.Position
  369. end
  370. end
  371. end))
  372. --tool
  373. if script.Parent.className ~= "HopperBin" then
  374.     local h = Instance.new("HopperBin", player.Backpack)
  375.     h.Name = "Gladius CUSPIS" --Latin word for The sword of the spikes
  376.     script.Parent = h
  377. end
  378. local bin = script.Parent
  379. function onSelected(mouse)
  380. select()
  381.     mouse.Button1Down:connect(function()
  382.         shoot()
  383.     end)
  384.     mouse.KeyDown:connect(function(key)
  385.         if key == "q" then
  386.         fly = true
  387.         end
  388.         if key == "f" then
  389.         if left == false then
  390.         left = true
  391.         turnl()
  392.         coroutine.resume(coroutine.create(function()
  393.         while wait() do
  394.         if left == true then
  395.         turnl()
  396.         else
  397.         break
  398.         end
  399.         end
  400.         end))
  401.         end
  402.         end
  403.         if key == "h" then
  404.         if right == false then
  405.         right = true
  406.         turnr()
  407.         coroutine.resume(coroutine.create(function()
  408.         while wait() do
  409.         if right == true then
  410.         turnr()
  411.         else
  412.         break
  413.         end
  414.         end
  415.         end))
  416.         end
  417.         end
  418.         if key == "t" then
  419.         if forw == false then
  420.         forw = true
  421.         forward()
  422.         coroutine.resume(coroutine.create(function()
  423.         while wait() do
  424.         if forw == true then
  425.         forward()
  426.         else
  427.         basef.velocity = Vector3.new(0, 0, 0)
  428.         break
  429.         end
  430.         end
  431.         end))
  432.         end
  433.         end
  434.         if key == "g" then
  435.         if backw == false then
  436.         backw = true
  437.         backward()
  438.         coroutine.resume(coroutine.create(function()
  439.         while wait() do
  440.         if backw == true then
  441.         backward()
  442.         else
  443.         basef.velocity = Vector3.new(0, 0, 0)
  444.         break
  445.         end
  446.         end
  447.         end))
  448.         end
  449.         end
  450.     end)
  451.     mouse.KeyUp:connect(function(key)
  452.         if key == "q" then
  453.         fly = false
  454.         end
  455.         if key == "f" then
  456.         left = false
  457.         end
  458.         if key == "h" then
  459.         right = false
  460.         end
  461.         if key == "t" then
  462.         forw = false
  463.         end
  464.         if key == "g" then
  465.         backw = false
  466.         end
  467.     end)
  468. end
  469. function onDesel(mouse)
  470. deselect()
  471. end
  472. bin.Selected:connect(onSelected)
  473. bin.Deselected:connect(onDesel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement