Advertisement
Roblox_Xploits

Armour

Aug 25th, 2016
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.90 KB | None | 0 0
  1. me = Game.Players.yfc.Character
  2. color1 = "Bright red"
  3. color2 = "Really black"
  4. color3 = "Really black"
  5. color4 = "Really black"
  6.  
  7. m = math.random(1, 5)
  8. if m == 1 then
  9. color1 = "Bright red"
  10. color2 = "Really blue"
  11. color3 = "Really black"
  12. color4 = "Really black"
  13. end
  14. if m == 2 then
  15. color1 = "Bright green"
  16. color2 = "Bright yellow"
  17. color3 = "Really black"
  18. color4 = "Mid grey"
  19. end
  20. if m == 3 then
  21. color1 = "Bright yellow"
  22. color2 = "Black"
  23. color3 = "Mid grey"
  24. color4 = "Really black"
  25. end
  26. if m == 4 then
  27. color1 = "Mid grey"
  28. color2 = "Dark stone grey"
  29. color3 = "Really black"
  30. color4 = "Really black"
  31. end
  32. if m == 5 then
  33. color1 = "Dark stone grey"
  34. color2 = "Really black"
  35. color3 = "Black"
  36. color4 = "Mid grey"
  37. end
  38.  
  39. --suit--
  40. part = Instance.new("Part")
  41. part.Parent = me
  42. part.Locked = true
  43. part.CanCollide = false
  44. part.Size = Vector3.new(2, 2, 1)
  45. part.Position = Vector3.new(0, 0, 0)
  46. part.BrickColor = BrickColor.new(color1)
  47. part.Reflectance = 0.15
  48. part:BreakJoints()
  49. mesh = Instance.new("BlockMesh")
  50. mesh.Parent = part
  51. mesh.Scale = Vector3.new(1.01, 0.85, 1.05)
  52. weld = Instance.new("Weld")
  53. weld.Parent = me
  54. weld.Part0 = part
  55. weld.Part1 = me.Torso
  56. weld.C0 = CFrame.new(0, 0, 0)
  57. weldC1 = CFrame.new()
  58. part = Instance.new("Part")
  59. part.Parent = me
  60. part.Size = Vector3.new(2, 2, 1)
  61. part.CanCollide = false
  62. part.Locked = true
  63. part.Position = Vector3.new(0, 0, 0)
  64. part.BrickColor = BrickColor.new(color2)
  65. part.Reflectance = 0.05
  66. part:BreakJoints()
  67. mesh = Instance.new("BlockMesh")
  68. mesh.Parent = part
  69. mesh.Scale = Vector3.new(0.98, 0.85/2, 1.07)
  70. weld = Instance.new("Weld")
  71. weld.Parent = me
  72. weld.Part0 = part
  73. weld.Part1 = me.Torso
  74. weld.C0 = CFrame.new(0, 0.5, 0)
  75. weldC1 = CFrame.new()
  76. part = Instance.new("Part")
  77. part.Locked = true
  78. part.CanCollide = false
  79. part.Parent = me
  80. part.Size = Vector3.new(1, 2, 1)
  81. part.Position = Vector3.new(0, 0, 0)
  82. part.BrickColor = BrickColor.new(color1)
  83. part.Reflectance = 0.15
  84. part:BreakJoints()
  85. mesh = Instance.new("BlockMesh")
  86. mesh.Parent = part
  87. mesh.Scale = Vector3.new(1.01, 0.85, 1.05)
  88. weld = Instance.new("Weld")
  89. weld.Parent = me
  90. weld.Part0 = part
  91. weld.Part1 = me["Right Arm"]
  92. weld.C0 = CFrame.new(0, 0, 0)
  93. weldC1 = CFrame.new()
  94. part = Instance.new("Part")
  95. part.Parent = me
  96. part.Locked = true
  97. part.Size = Vector3.new(1, 2, 1)
  98. part.Position = Vector3.new(0, 0, 0)
  99. part.CanCollide = false
  100. part.BrickColor = BrickColor.new(color2)
  101. part.Reflectance = 0.15
  102. part:BreakJoints()
  103. mesh = Instance.new("BlockMesh")
  104. mesh.Parent = part
  105. mesh.Scale = Vector3.new(1.02, 0.85/2, 1.06)
  106. weld = Instance.new("Weld")
  107. weld.Parent = me
  108. weld.Part0 = part
  109. weld.Part1 = me["Right Arm"]
  110. weld.C0 = CFrame.new(0, 0.5, 0)
  111. weldC1 = CFrame.new()
  112. part = Instance.new("Part")
  113. part.CanCollide = false
  114. part.Parent = me
  115. part.Size = Vector3.new(1, 2, 1)
  116. part.Locked = true
  117. part.Position = Vector3.new(0, 0, 0)
  118. part.BrickColor = BrickColor.new(color1)
  119. part.Reflectance = 0.15
  120. part:BreakJoints()
  121. mesh = Instance.new("BlockMesh")
  122. mesh.Parent = part
  123. mesh.Scale = Vector3.new(1.01, 0.85, 1.05)
  124. weld = Instance.new("Weld")
  125. weld.Parent = me
  126. weld.Part0 = part
  127. weld.Part1 = me["Left Arm"]
  128. weld.C0 = CFrame.new(0, 0, 0)
  129. weldC1 = CFrame.new()
  130. part = Instance.new("Part")
  131. part.Parent = me
  132. part.Size = Vector3.new(1, 2, 1)
  133. part.Locked = true
  134. part.Position = Vector3.new(0, 0, 0)
  135. part.CanCollide = false
  136. part.BrickColor = BrickColor.new(color2)
  137. part.Reflectance = 0.15
  138. part:BreakJoints()
  139. mesh = Instance.new("BlockMesh")
  140. mesh.Parent = part
  141. mesh.Scale = Vector3.new(1.02, 0.85/2, 1.06)
  142. weld = Instance.new("Weld")
  143. weld.Parent = me
  144. weld.Part0 = part
  145. weld.Part1 = me["Left Arm"]
  146. weld.C0 = CFrame.new(0, 0.5, 0)
  147. weldC1 = CFrame.new()
  148. part = Instance.new("Part")
  149. part.CanCollide = false
  150. part.Locked = true
  151. part.Parent = me
  152. part.Size = Vector3.new(1, 2, 1)
  153. part.Position = Vector3.new(0, 0, 0)
  154. part.BrickColor = BrickColor.new(color1)
  155. part.Reflectance = 0.15
  156. part:BreakJoints()
  157. mesh = Instance.new("BlockMesh")
  158. mesh.Parent = part
  159. mesh.Scale = Vector3.new(1.01, 0.85, 1.05)
  160. weld = Instance.new("Weld")
  161. weld.Parent = me
  162. weld.Part0 = part
  163. weld.Part1 = me["Left Leg"]
  164. weld.C0 = CFrame.new(0, 0, 0)
  165. weldC1 = CFrame.new()
  166. part = Instance.new("Part")
  167. part.Locked = true
  168. part.Parent = me
  169. part.Size = Vector3.new(1, 2, 1)
  170. part.Position = Vector3.new(0, 0, 0)
  171. part.CanCollide = false
  172. part.BrickColor = BrickColor.new(color2)
  173. part.Reflectance = 0.15
  174. part:BreakJoints()
  175. mesh = Instance.new("BlockMesh")
  176. mesh.Parent = part
  177. mesh.Scale = Vector3.new(1.02, 0.85/2, 1.06)
  178. weld = Instance.new("Weld")
  179. weld.Parent = me
  180. weld.Part0 = part
  181. weld.Part1 = me["Left Leg"]
  182. weld.C0 = CFrame.new(0, 0.5, 0)
  183. weldC1 = CFrame.new()
  184. part = Instance.new("Part")
  185. part.CanCollide = false
  186. part.Parent = me
  187. part.Locked = true
  188. part.Size = Vector3.new(1, 2, 1)
  189. part.Position = Vector3.new(0, 0, 0)
  190. part.BrickColor = BrickColor.new(color1)
  191. part.Reflectance = 0.15
  192. part:BreakJoints()
  193. mesh = Instance.new("BlockMesh")
  194. mesh.Parent = part
  195. mesh.Scale = Vector3.new(1.01, 0.85, 1.05)
  196. weld = Instance.new("Weld")
  197. weld.Parent = me
  198. weld.Part0 = part
  199. weld.Part1 = me["Right Leg"]
  200. weld.C0 = CFrame.new(0, 0, 0)
  201. weldC1 = CFrame.new()
  202. part = Instance.new("Part")
  203. part.Locked = true
  204. part.Parent = me
  205. part.Size = Vector3.new(1, 2, 1)
  206. part.Position = Vector3.new(0, 0, 0)
  207. part.CanCollide = false
  208. part.BrickColor = BrickColor.new(color2)
  209. part.Reflectance = 0.15
  210. part:BreakJoints()
  211. mesh = Instance.new("BlockMesh")
  212. mesh.Parent = part
  213. mesh.Scale = Vector3.new(1.02, 0.85/2, 1.06)
  214. weld = Instance.new("Weld")
  215. weld.Parent = me
  216. weld.Part0 = part
  217. weld.Part1 = me["Right Leg"]
  218. weld.C0 = CFrame.new(0, 0.5, 0)
  219. weldC1 = CFrame.new()
  220. --shield--
  221. part = Instance.new("Part")
  222. part.Parent = me
  223. part.Size = Vector3.new(1, 3, 2)
  224. part.Locked = true
  225. part.Position = Vector3.new(0, 0, 0)
  226. part.CanCollide = false
  227. part.BrickColor = BrickColor.new(color2)
  228. part.Reflectance = 0.15
  229. part:BreakJoints()
  230. mesh = Instance.new("BlockMesh")
  231. mesh.Parent = part
  232. mesh.Scale = Vector3.new(1.02, 1.5, 1.56)
  233. weld = Instance.new("Weld")
  234. weld.Parent = me
  235. weld.Part0 = part
  236. weld.Part1 = me["Left Arm"]
  237. weld.C0 = CFrame.new(1, 0, 0)
  238. weldC1 = CFrame.new()
  239. part = Instance.new("Part")
  240. part.Locked = true
  241. part.Parent = me
  242. part.Size = Vector3.new(1, 2, 1)
  243. part.Position = Vector3.new(0, 0, 0)
  244. part.CanCollide = false
  245. part.BrickColor = BrickColor.new(color1)
  246. part.Reflectance = 0.15
  247. part:BreakJoints()
  248. mesh = Instance.new("BlockMesh")
  249. mesh.Parent = part
  250. mesh.Scale = Vector3.new(1.03, 1.49, 1.56)
  251. weld = Instance.new("Weld")
  252. weld.Parent = me
  253. weld.Part0 = part
  254. weld.Part1 = me["Left Arm"]
  255. weld.C0 = CFrame.new(1, 0, 0)
  256. weldC1 = CFrame.new()
  257. part = Instance.new("Part")
  258. part.Parent = me
  259. part.Size = Vector3.new(1, 1, 1)
  260. part.Position = Vector3.new(0, 0, 0)
  261. part.CanCollide = false
  262. part.BrickColor = BrickColor.new(color2)
  263. part.Reflectance = 0.15
  264. part.Locked = true
  265. part:BreakJoints()
  266. mesh = Instance.new("BlockMesh")
  267. mesh.Parent = part
  268. mesh.Scale = Vector3.new(1.03, 1.49, 1.56)
  269. weld = Instance.new("Weld")
  270. weld.Parent = me
  271. weld.Part0 = part
  272. weld.Part1 = me["Left Arm"]
  273. weld.C0 = CFrame.new(0.78, 0, 0)
  274. weldC1 = CFrame.new()
  275. --sword--
  276. part = Instance.new("Part")
  277. part.Parent = me
  278. part.Size = Vector3.new(1, 1, 1)
  279. part.Position = Vector3.new(0, 0, 0)
  280. part.CanCollide = false
  281. part.Locked = true
  282. part.BrickColor = BrickColor.new(color3)
  283. part.Reflectance = 0.15
  284. part:BreakJoints()
  285. mesh = Instance.new("BlockMesh")
  286. mesh.Parent = part
  287. mesh.Scale = Vector3.new(0.4, 0.45, 0.8)
  288. weld = Instance.new("Weld")
  289. weld.Parent = me
  290. weld.Part0 = part
  291. weld.Part1 = me["Right Arm"]
  292. weld.C0 = CFrame.new(0, 1, 0)
  293. weldC1 = CFrame.new()
  294. part = Instance.new("Part")
  295. part.Parent = me
  296. part.Size = Vector3.new(1, 1, 1)
  297. part.Locked = true
  298. part.Position = Vector3.new(0, 0, 0)
  299. part.CanCollide = false
  300. part.BrickColor = BrickColor.new(color3)
  301. part.Reflectance = 0.15
  302. part:BreakJoints()
  303. mesh = Instance.new("BlockMesh")
  304. mesh.Parent = part
  305. mesh.Scale = Vector3.new(0.8, 0.4, 0.2)
  306. weld = Instance.new("Weld")
  307. weld.Parent = me
  308. weld.Part0 = part
  309. weld.Part1 = me["Right Arm"]
  310. weld.C0 = CFrame.new(0, 1.15, 0.5)
  311. weldC1 = CFrame.new()
  312. part = Instance.new("Part")
  313. part.Parent = me
  314. part.Size = Vector3.new(1, 1, 3)
  315. part.Locked = true
  316. part.Position = Vector3.new(0, 0, 0)
  317. part.CanCollide = false
  318. part.BrickColor = BrickColor.new(color4)
  319. part.Reflectance = 0.15
  320. part:BreakJoints()
  321. mesh = Instance.new("BlockMesh")
  322. mesh.Parent = part
  323. mesh.Scale = Vector3.new(0.4, 0.2, 1)
  324. weld = Instance.new("Weld")
  325. weld.Parent = me
  326. weld.Part0 = part
  327. weld.Part1 = me["Right Arm"]
  328. weld.C0 = CFrame.new(0, 1.15, 2.1)
  329. weldC1 = CFrame.new()
  330. part = Instance.new("Part")
  331. part.Parent = me
  332. part.Size = Vector3.new(1, 1, 1)
  333. part.Locked = true
  334. part.Position = Vector3.new(0, 0, 0)
  335. part.CanCollide = false
  336. part.BrickColor = BrickColor.new(color4)
  337. part.Reflectance = 0.15
  338. part:BreakJoints()
  339. mesh = Instance.new("BlockMesh")
  340. mesh.Parent = part
  341. mesh.Scale = Vector3.new(0.25, 0.3, 0.4)
  342. weld = Instance.new("Weld")
  343. weld.Parent = me
  344. weld.Part0 = part
  345. weld.Part1 = me["Right Arm"]
  346. weld.C0 = CFrame.fromEulerAnglesXYZ(1.55/1.5, 0, 1.55) + Vector3.new(-1.15, -3, 1.8)
  347. weldC1 = CFrame.new()
  348. --tool--
  349. tool = Instance.new("Tool")
  350. tool.Parent = me
  351. tool.Name = "Sword"
  352.  
  353. han = Instance.new("Part")
  354. han.Parent = tool
  355. han.Name = "Handle"
  356. han.Size = Vector3.new(1, 3, 1)
  357. han.Transparency = 1
  358.  
  359. r = game:service("RunService")
  360.  
  361.  
  362. local damage = 6
  363.  
  364.  
  365. local slash_damage = 15
  366.  
  367.  
  368. local lunge_damage = 25
  369.  
  370. function equip()
  371.  
  372. end
  373.  
  374. sword = han
  375. Tool = tool
  376.  
  377. function attack()
  378. damage = slash_damage
  379. local anim = Instance.new("StringValue")
  380. anim.Name = "toolanim"
  381. anim.Value = "Slash"
  382. anim.Parent = Tool
  383. end
  384.  
  385. function stab()
  386. damage = lunge_damage
  387. local anim = Instance.new("StringValue")
  388. anim.Name = "toolanim"
  389. anim.Value = "Lunge"
  390. anim.Parent = Tool
  391. end
  392.  
  393. function swordUp()
  394. Tool.GripForward = Vector3.new(0,0,0)
  395. Tool.GripRight = Vector3.new(0,0,0)
  396. Tool.GripUp = Vector3.new(0,1,0)
  397. Tool.GripPos = Vector3.new(0,0,0.15)
  398. end
  399.  
  400. function swordOut()
  401. Tool.GripForward = Vector3.new(0,0,1)
  402. Tool.GripRight = Vector3.new(0,-1,0)
  403. Tool.GripUp = Vector3.new(-1,0,0)
  404. end
  405.  
  406. function Unequipped()
  407.  
  408. end
  409.  
  410. Tool.Enabled = true
  411.  
  412. function onActivated()
  413.  
  414. if not Tool.Enabled then
  415. return
  416. end
  417.  
  418. Tool.Enabled = false
  419.  
  420. local character = Tool.Parent;
  421. local humanoid = character.Humanoid
  422. if humanoid == nil then
  423. print("Humanoid not found")
  424. return
  425. end
  426.  
  427. Tool.Enabled = true
  428. end
  429.  
  430. function onEquipped()
  431.  
  432. end
  433.  
  434. attack()
  435.  
  436. ------part 3
  437. ------part 3
  438. ------part 3
  439. function Touched(hit)
  440. human = hit.Parent:findFirstChild("Humanoid")
  441. if human then
  442. if hit.Parent.Name ~= me.Name then
  443. hit.Parent.Humanoid.Health = human.Health - damage
  444. end
  445. end
  446. end
  447.  
  448. Tool.Activated:connect(onActivated)
  449. Tool.Equipped:connect(onEquipped)
  450. Tool.Unequipped:connect(Unequipped)
  451. sword.Touched:connect(Touched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement