BOBBIEBOY

REDSUIT

Jan 1st, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.89 KB | None | 0 0
  1. player = game:service("Players").LocalPlayer
  2. player.Character.Humanoid.MaxHealth = math.huge
  3. player.Character.Humanoid.Health = math.huge
  4. suit = Instance.new("Model", player.Character)
  5. color = "Really black"
  6. eyecolor = "Really red"
  7. lasercolor = "Really red"
  8. dotcolor = "Really red"
  9. damage = 25
  10. for i,v in pairs(player.Character:GetChildren()) do
  11. if v.className == "CharacterMesh" or v.className == "Hat" then
  12. v:remove()
  13. end end
  14. Weld = function(PartA,PartB)
  15. if PartA:IsA("Part") and PartB:IsA("Part") then
  16. local OffSet2 = PartA.Position-PartB.Position
  17. local PartAcframe = PartA.CFrame
  18. local weld = Instance.new("Weld")
  19. weld.Parent = suit
  20. weld.Part0 = PartA
  21. weld.Part1 = PartB
  22. weld.C1 = CFrame.new(OffSet2)
  23. PartA.CFrame = PartA.CFrame
  24. PartA:MakeJoints()
  25. PartB:MakeJoints()
  26. end
  27. end
  28. torso = Instance.new("Part", suit)
  29. torso.FormFactor = "Custom"
  30. torso.Size = Vector3.new(2.2, 2.2, 1.2)
  31. torso.BrickColor = BrickColor.new(color)
  32. torso.TopSurface = "Smooth"
  33. torso.BottomSurface = "Smooth"
  34. torso.CFrame = player.Character.Torso.CFrame
  35. Weld(player.Character.Torso, torso)
  36. la = Instance.new("Part", suit)
  37. la.FormFactor = "Custom"
  38. la.Size = Vector3.new(1.2, 2.2, 1.2)
  39. la.BrickColor = BrickColor.new(color)
  40. la.TopSurface = "Smooth"
  41. la.BottomSurface = "Smooth"
  42. la.CFrame = player.Character["Left Arm"].CFrame
  43. Weld(player.Character["Left Arm"], la)
  44. ra = Instance.new("Part", suit)
  45. ra.FormFactor = "Custom"
  46. ra.Size = Vector3.new(1.2, 2.2, 1.2)
  47. ra.BrickColor = BrickColor.new(color)
  48. ra.TopSurface = "Smooth"
  49. ra.BottomSurface = "Smooth"
  50. ra.CFrame = player.Character["Right Arm"].CFrame
  51. Weld(player.Character["Right Arm"], ra)
  52. rl = Instance.new("Part", suit)
  53. rl.FormFactor = "Custom"
  54. rl.Size = Vector3.new(1.2, 2, 1.2)
  55. rl.BrickColor = BrickColor.new(color)
  56. rl.TopSurface = "Smooth"
  57. rl.BottomSurface = "Smooth"
  58. rl.CFrame = player.Character["Right Leg"].CFrame
  59. Weld(player.Character["Right Leg"], rl)
  60. ll = Instance.new("Part", suit)
  61. ll.FormFactor = "Custom"
  62. ll.Size = Vector3.new(1.2, 2, 1.2)
  63. ll.BrickColor = BrickColor.new(color)
  64. ll.TopSurface = "Smooth"
  65. ll.BottomSurface = "Smooth"
  66. ll.CFrame = player.Character["Left Leg"].CFrame
  67. Weld(player.Character["Left Leg"], ll)
  68. h = Instance.new("Part", suit)
  69. h.CanCollide = true
  70. h.FormFactor = "Custom"
  71. h.Size = Vector3.new(1.2, 1.2, 1.2)
  72. h.BrickColor = BrickColor.new(color)
  73. h.TopSurface = "Smooth"
  74. h.BottomSurface = "Smooth"
  75. h.CFrame = player.Character["Head"].CFrame
  76. player.Character["Head"].Mesh:Clone().Parent = h
  77. Weld(player.Character["Head"], h)
  78. e1 = Instance.new("Part", suit)
  79. e1.CanCollide = true
  80. e1.FormFactor = "Custom"
  81. e1.Size = Vector3.new(0.1, 0.1, 0.1)
  82. e1.BrickColor = BrickColor.new(eyecolor)
  83. e1.TopSurface = "Smooth"
  84. e1.BottomSurface = "Smooth"
  85. e1.CFrame = player.Character["Head"].CFrame * CFrame.new(0.25, 0.25, 0.7)
  86. Weld(h, e1)
  87. e2 = Instance.new("Part", suit)
  88. e2.CanCollide = true
  89. e2.FormFactor = "Custom"
  90. e2.Size = Vector3.new(0.1, 0.1, 0.1)
  91. e2.BrickColor = BrickColor.new(eyecolor)
  92. e2.TopSurface = "Smooth"
  93. e2.BottomSurface = "Smooth"
  94. e2.CFrame = player.Character["Head"].CFrame * CFrame.new(-0.25, 0.25, 0.7)
  95. Weld(h, e2)
  96. saber = Instance.new("Tool", player.Backpack)
  97. saber.Name = "Suit Saber"
  98. saberh = Instance.new("Part", saber)
  99. saberh.Name = "Handle"
  100. saberh.FormFactor = "Custom"
  101. saberh.TopSurface = "Smooth"
  102. saberh.BottomSurface = "Smooth"
  103. saberh.Transparency = 0.5
  104. saberh.Size = Vector3.new(0.1, 5, 0.1)
  105. saber.Equipped:connect(function(mouse)
  106. mouse.Button1Down:connect(function()
  107. rs = player.Character.Torso["Right Shoulder"]
  108. ls = player.Character.Torso["Left Shoulder"]
  109. local speed = rs.MaxVelocity
  110. for a = 1, 9 do
  111. rs.C0 = rs.C0 * CFrame.Angles(0,0.1,0)
  112. ls.C0 = ls.C0 * CFrame.Angles(0,-0.1,0)
  113. end
  114. rs.MaxVelocity = 0.7
  115. ls.MaxVelocity = 0.7
  116. for i = 1, 5 do
  117. wait()
  118. rs.DesiredAngle = 2.5
  119. ls.DesiredAngle = -2.5
  120. end
  121. rs.MaxVelocity = 0
  122. ls.MaxVelocity = 0
  123. wait(0.5)
  124. rs.MaxVelocity = 0.2
  125. ls.MaxVelocity = 0.2
  126. for i = 1, 80 do
  127. wait()
  128. rs.DesiredAngle = 1.2
  129. ls.DesiredAngle = -1.2
  130. end
  131. rs.DesiredAngle = 0
  132. ls.DesiredAngle = 0
  133. rs.MaxVelocity = speed
  134. ls.MaxVelocity = speed
  135. for a = 1, 9 do
  136. wait()
  137. rs.C0 = rs.C0 * CFrame.Angles(0,-0.1,0)
  138. ls.C0 = ls.C0 * CFrame.Angles(0,0.1,0)
  139. end
  140. end)
  141. end)
  142. toolfunc = 1
  143. mdown = false
  144. tool = Instance.new("HopperBin", player.Backpack)
  145. tool.Name = "Suit's Power"
  146. tool.Selected:connect(function(mouse)
  147. mouse.Button1Up:connect(function()
  148. mdown = false
  149. end)
  150. mouse.KeyDown:connect(function(key)
  151. if key == "r" then
  152. suit:remove()
  153. tool:remove()
  154. player.Character:BreakJoints()
  155. script:remove()
  156. end
  157. if key == "t" then
  158. toolfunc = 2
  159. end
  160. if key == "e" then
  161. toolfunc = 1
  162. end
  163. if key == "m" then
  164. toolfunc = 3
  165. end
  166. end)
  167. mouse.Button1Down:connect(function()
  168. mdown = true
  169. if (toolfunc == 1) then
  170. while mdown == true do
  171. local i = mouse.Target
  172. local oPos = Vector3.new(0,0,0)
  173. local cf = CFrame.new((e1.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  174. local mag = (e1.Position - mouse.Hit.p).magnitude
  175. local cf2 = CFrame.new((e2.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  176. local mag2 = (e2.Position - mouse.Hit.p).magnitude
  177. if (mag > 2048) then return end
  178. if (mag2 > 2048) then return end
  179. local r = Instance.new("Part")
  180. r.BrickColor = BrickColor.new(lasercolor)
  181. r.formFactor = "Custom"
  182. r.Size = Vector3.new(0.2,0.2,mag)
  183. r.CFrame = cf
  184. r.Anchored = false
  185. r.CanCollide = false
  186. r.Parent = suit
  187. r.Transparency = 0.5
  188. local r2 = Instance.new("Part")
  189. r2.BrickColor = BrickColor.new(lasercolor)
  190. r2.formFactor = "Custom"
  191. r2.Size = Vector3.new(0.2,0.2,mag2)
  192. r2.CFrame = cf2
  193. r2.Anchored = false
  194. r2.CanCollide = false
  195. r2.Parent = suit
  196. r2.Transparency = 0.5
  197. wait(0.01)
  198. r:remove()
  199. r2:remove()
  200. if i ~= nil then
  201. local a = game:service("Players"):GetPlayerFromCharacter(i.Parent)
  202. if a then
  203. if a.Character:findFirstChild("Humanoid") then
  204. a.Character.Humanoid.Health = a.Character.Humanoid.Health - damage
  205. end
  206. else
  207. local a = game:service("Players"):GetPlayerFromCharacter(i.Parent.Parent)
  208.  
  209. if a then
  210. if a.Character:findFirstChild("Humanoid") then
  211. a.Character.Humanoid.Health = a.Character.Humanoid.Health - damage
  212. end end end end end end
  213.  
  214. if (toolfunc == 2) then
  215. while mdown == true do
  216. local i = mouse.Target
  217. local oPos = Vector3.new(0,0,0)
  218. local cf = CFrame.new((e1.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  219. local mag = (e1.Position - mouse.Hit.p).magnitude
  220. local cf2 = CFrame.new((e2.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  221. local mag2 = (e2.Position - mouse.Hit.p).magnitude
  222. if (mag > 2048) then return end
  223. if (mag2 > 2048) then return end
  224. local r = Instance.new("Part")
  225. r.BrickColor = BrickColor.new(lasercolor)
  226. r.formFactor = "Custom"
  227. r.Size = Vector3.new(0.2,0.2,mag)
  228. r.CFrame = cf
  229. r.Anchored = false
  230. r.CanCollide = false
  231. r.Parent = suit
  232. r.Transparency = 0.5
  233. local r2 = Instance.new("Part")
  234. r2.BrickColor = BrickColor.new(lasercolor)
  235. r2.formFactor = "Custom"
  236. r2.Size = Vector3.new(0.2,0.2,mag2)
  237. r2.CFrame = cf2
  238. r2.Anchored = false
  239. r2.CanCollide = false
  240. r2.Parent = suit
  241. r2.Transparency = 0.5
  242. wait(0.01)
  243. r:remove()
  244. r2:remove()
  245. local dot = Instance.new("Part", suit)
  246. dot.Name = "Dot"
  247. dot.FormFactor = "Custom"
  248. dot.Size = Vector3.new(0.1, 0.1, 0.1)
  249. dot.BrickColor = BrickColor.new(dotcolor)
  250. dot.Anchored = false
  251. dot.Position = mouse.Hit.p
  252. end end
  253.  
  254. if (toolfunc == 3) then
  255. local i = mouse.Target
  256. local oPos = Vector3.new(0,0,0)
  257. local cf = CFrame.new((e1.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  258. local mag = (e1.Position - mouse.Hit.p).magnitude
  259. local cf2 = CFrame.new((e2.Position + mouse.Hit.p) / 2, mouse.Hit.p)
  260. local mag2 = (e2.Position - mouse.Hit.p).magnitude
  261. if (mag > 2048) then return end
  262. if (mag2 > 2048) then return end
  263. local r = Instance.new("Part")
  264. r.BrickColor = BrickColor.new(lasercolor)
  265. r.formFactor = "Custom"
  266. r.Size = Vector3.new(0.2,0.2,mag)
  267. r.CFrame = cf
  268. r.Anchored = false
  269. r.CanCollide = false
  270. r.Parent = suit
  271. r.Transparency = 0.5
  272. local r2 = Instance.new("Part")
  273. r2.BrickColor = BrickColor.new(lasercolor)
  274. r2.formFactor = "Custom"
  275. r2.Size = Vector3.new(0.2,0.2,mag2)
  276. r2.CFrame = cf2
  277. r2.Anchored = false
  278. r2.CanCollide = false
  279. r2.Parent = suit
  280. r2.Transparency = 0.5
  281. wait(0.01)
  282. r:remove()
  283. r2:remove()
  284. player.Character.Torso.CFrame = CFrame.new(mouse.Hit.p.x, mouse.Hit.p.y + 3, mouse.Hit.p.z)
  285. end
  286. end) end)
Add Comment
Please, Sign In to add comment