Advertisement
Null_Cat

commando but its fe

Jul 20th, 2018
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 30.70 KB | None | 0 0
  1. --Run it as a script and then a local script
  2. --h/link then hl/link
  3.  
  4. --Commando
  5. --From 'Risk Of Rain'
  6. --Script by Null_Cat
  7.  
  8. --...and so he left, with everything but his humanity.
  9.  
  10. --[[About the script
  11.  
  12. The Commando is characterized by long range and mobility.
  13. Effective use of his Tactical Dive will grant increased survivability,
  14. while suppressive fire deals massive damage.
  15. FMJ can then be used to dispose of large mobs.
  16.  
  17. Mouse1: Double Tap (Shoot twice for 2x60% damage.)
  18. E: Full Metal Jacket (Shoot through enemies for 230% damage, knocking them back.)
  19. Left Control: Tactical Dive (Roll forward a small distance. You cannot be hit while rolling.)
  20. R: Suppressive Fire (Fire rapidly, stunning and hitting nearby enemies for 6x60% damage.)
  21. M: Music Control
  22. C: Bring up controls/info
  23.  
  24. This script, of course, is mobile compatible, as well as computer compatible
  25.  
  26. Alright, the script.
  27. --]]
  28.  
  29.  
  30. if script.ClassName == "Script" then
  31. --Oh dang almost forgot about this one line that breaks everything if its not in the script
  32. --local plr = game:service'Players'["Null_Cat"]
  33. local plr = owner
  34. local thatGoodBoi = Instance.new("RemoteEvent",plr.Character)
  35. thatGoodBoi.Name = "Commando Remote"
  36.  
  37. --alright the rest isnt important
  38. script.Name = "RoR - Commando"
  39. local chr = plr.Character
  40. local hum = chr.Humanoid
  41. local plrG = plr:WaitForChild("PlayerGui")
  42. local head = chr.Head
  43. local torso = chr.Torso
  44. local ra = chr["Right Arm"]
  45. local la = chr["Left Arm"]
  46. local rl = chr["Right Leg"]
  47. local ll = chr["Left Leg"]
  48. local root = chr.HumanoidRootPart
  49. hum.MaxHealth = 110
  50. wait(1/60)
  51. hum.Health = hum.MaxHealth
  52. local dodging = false
  53. local healthCheck = true
  54. local attacking = false
  55. local level = 1
  56. local baseDamage = 9 + (3 * level)
  57. local levelHP = 78 + (32 * level)
  58. local levelRegen = 0.48 + (0.12 * level)
  59.  
  60. --SERVICE
  61. local debri = game:service'Debris'
  62. local runS = game:service'RunService'
  63.  
  64. function swait(num)
  65.     if num == nil or num == 0 then
  66.         runS.Stepped:wait(0)
  67.     else
  68.         for i = 1, num do
  69.             runS.Stepped:wait(0)
  70.         end
  71.     end
  72. end
  73.  
  74. function noOutline(Part)
  75. if Part.ClassName == "Part" or Part.ClassName == "WedgePart" then
  76. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  77. else
  78. error"The hell."
  79. end
  80. end
  81.  
  82. --jk good music is important ok dont judge me
  83. local musicOn = false
  84. local musicChoose = 0
  85. local mOOsic
  86. function musicCtrl()
  87. if musicOn then
  88. musicOn = false
  89. mOOsic:Destroy()
  90. elseif not musicOn then
  91. musicOn = true
  92. mOOsic = Instance.new("Sound")
  93. mOOsic.Parent = head
  94. musicChoose = musicChoose + 1
  95. if musicChoose >= 3 then
  96. musicChoose = 1
  97. end
  98. if musicChoose == 1 then
  99. mOOsic.SoundId = "rbxassetid://1041562070"
  100. elseif musicChoose == 2 then
  101. mOOsic.SoundId = "rbxassetid://1082127066"
  102. end
  103. mOOsic.Looped = true
  104. mOOsic.Volume = 2.5
  105. --mOOsic:Play()
  106. end
  107. end
  108. --musicCtrl()
  109. --alright back to useless stuff
  110.  
  111. --Damage Text
  112. function dmgTxt(dmg, type, pos)
  113. local link = Instance.new("Part", workspace)
  114. link.Anchored = true
  115. link.CanCollide = false
  116. link.Transparency = 1
  117. link.CFrame = pos
  118. local billBoard = Instance.new("BillboardGui", link)
  119. billBoard.Adornee = link
  120. billBoard.Size = UDim2.new(3,0,3,0)
  121. local textBox = Instance.new("TextLabel", billBoard)
  122. textBox.Text = dmg
  123. textBox.TextStrokeTransparency = 0
  124. textBox.TextStrokeColor3 = Color3.new(0,0,0)
  125. textBox.BackgroundTransparency = 1
  126. textBox.TextScaled = true
  127. if type == "Hit" then
  128. textBox.TextColor3 = Color3.new(1,1,1)
  129. textBox.Size = UDim2.new(0.5,0,0.5,0)
  130. debri:AddItem(link,1.5)
  131. elseif type == "Dodge" then
  132. textBox.TextColor3 = Color3.new(0.5,0.5,0.5)
  133. textBox.Size = UDim2.new(1,0,1,0)
  134. debri:AddItem(link,1.5)
  135. elseif type == "Hurt" then
  136. textBox.TextColor3 = Color3.new(0.5,0,.5)
  137. textBox.Size = UDim2.new(1,0,1,0)
  138. debri:AddItem(link,1.5)
  139. elseif type == "Level" then
  140. textBox.TextColor3 = Color3.new(0,0.9,0)
  141. textBox.Size = UDim2.new(1,0,1,0)
  142. debri:AddItem(link,3)
  143. end
  144. end
  145. pcall(function()
  146. chr.Health:Destroy()
  147. end)
  148. local currHP = hum.Health
  149. spawn(function()
  150. while wait(58/60) do
  151. if hum.Health > 0 then
  152. healthCheck = false
  153. wait(1/60)
  154. hum.Health = hum.Health + levelRegen
  155. wait(1/60)
  156. healthCheck = true
  157. currHP = hum.Health
  158. end
  159. end
  160. end)
  161.  
  162. hum.HealthChanged:connect(function(damage)
  163. if dodging and healthCheck then
  164. dmgTxt("Dodged","Dodge",CFrame.new(head.CFrame * CFrame.new(math.random(-20,20)/10,math.random(3,5),math.random(-20,20)/10).p))
  165. elseif not dodging and healthCheck then
  166. dmgTxt(math.abs(currHP-damage),"Hurt",CFrame.new(head.CFrame * CFrame.new(math.random(-20,20)/10,math.random(3,5),math.random(-20,20)/10).p))
  167. end
  168. end)
  169.  
  170. --Animations
  171. --Oh boi
  172. local CFN = CFrame.new
  173. local CFA = CFrame.Angles
  174. local R = math.rad
  175. local rs = torso['Right Shoulder']
  176. rs:Destroy()
  177. local ls = torso['Left Shoulder']
  178. ls:Destroy()
  179. local rh = torso['Right Hip']
  180. rh:Destroy()
  181. local lh = torso['Left Hip']
  182. lh:Destroy()
  183. local rj = root.RootJoint
  184. local rs = Instance.new("Weld", torso)
  185. rs.Name = "RS"
  186. local ls = Instance.new("Weld", torso)
  187. ls.Name = "LS"
  188. local rh = Instance.new("Weld", torso)
  189. rh.Name = "RH"
  190. local lh = Instance.new("Weld", torso)
  191. lh.Name = "LH"
  192. rs.Part0 = torso
  193. rs.Part1 = ra
  194. ls.Part0 = torso
  195. ls.Part1 = la
  196. rh.Part0 = torso
  197. rh.Part1 = rl
  198. lh.Part0 = torso
  199. lh.Part1 = ll
  200. local nc = torso.Neck
  201. pcall(function()
  202. chr.Animate:Destroy()
  203. end)
  204. pcall(function()
  205. hum.Animator:Destroy()
  206. end)
  207. ls.C0 = CFrame.new(-1.5, 0.5, 0)
  208. rs.C0 = CFrame.new(1.5, 0.5, 0)
  209. lh.C0 = CFrame.new(-0.5, -1, 0)
  210. rh.C0 = CFrame.new(0.5, -1, 0)
  211. nc.C0 = CFrame.new(0,1,0)
  212. ls.C1 = CFrame.new(0, 0.5, 0)
  213. rs.C1 = CFrame.new(0, 0.5, 0)
  214. lh.C1 = CFrame.new(0, 1, 0)
  215. rh.C1 = CFrame.new(0, 1, 0)
  216. nc.C1 = CFrame.new(0, -(1/2), 0)
  217. neckc0 = nc.C0
  218. lsc0 = ls.C0
  219. llc0 = lh.C0
  220. rsc0 = rs.C0
  221. rlc0 = rh.C0
  222. local sine = 0
  223. local holdW
  224. --Idle
  225. spawn(function()
  226. while true do
  227. for i = 0,2,0.2 do
  228. swait()
  229. local e = i / 2
  230. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  231. sine = sine + 0.5
  232.  
  233. if not attacking then
  234.  
  235. local humState = hum:GetState()
  236. if humState == Enum.HumanoidStateType.Seated then
  237.         rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(90),R(180),R(0)),0.2)
  238.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(0),R(0)),0.2)
  239.         lh.C0 = lh.C0:lerp(CFN(-0.5,-1, 0)*CFA(R(90), R(0), R(0)),0.2)
  240.         rh.C0 = rh.C0:lerp(CFN(0.5,-1, 0)*CFA(R(90), R(0), R(0)),0.2)
  241.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(90), R(0), R(0)),0.2)
  242.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(90), R(0), R(0)),0.2)
  243.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  244. elseif humState == Enum.HumanoidStateType.Climbing then
  245.  
  246. elseif humState == Enum.HumanoidStateType.Running or humState == Enum.HumanoidStateType.RunningNoPhysics then
  247.  
  248. if torvel < 1 then
  249. rj.C0 = rj.C0:lerp(CFN(0,-0.1 + 0.1 * math.cos(sine / 20),0)*CFA(R(90),R(180),R(-25)),0.2)
  250. nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(25),R(0)),0.2)
  251. lh.C0 = lh.C0:lerp(CFN(-0.5, -0.9 - 0.1 * math.cos(sine / 20), 0)*CFA(R(11), R(7), R(-11)),0.2)
  252. rh.C0 = rh.C0:lerp(CFN(0.5, -0.9 - 0.1 * math.cos(sine / 20), 0)*CFA(R(-10), R(-9), R(8)),0.2)
  253. ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(0), R(0), R(-10)),0.2)
  254. rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(0), R(4), R(10)),0.2)
  255. holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  256. else
  257.         rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(80),R(180),R(0)),0.2)
  258.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(0),R(0)),0.2)
  259.         lh.C0 = lh.C0:lerp(CFN(-0.5, -0.925 + 0.5 * math.cos(sine / 3.5) / 2, -0.5 * math.cos(sine / 3.5) / 2)*CFA(R(-15 + 35 * math.cos(sine / 3.5)) + math.sin(sine / 3.5) / 2.5, R(0 - 2 * math.cos(sine / 3.5)), R(0)),0.2)
  260.         rh.C0 = rh.C0:lerp(CFN(0.5, -0.925 - 0.5 * math.cos(sine / 3.5) / 2, 0.5 * math.cos(sine / 3.5) / 2)*CFA(R(-15 - 35 * math.cos(sine / 3.5)) + -math.sin(sine / 3.5) / 2.5, R(0 - 2 * math.cos(sine / 3.5)), R(0)),0.2)
  261.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(-15 - 35 * math.cos(sine / 3.5)) + -math.sin(sine / 3.5) / 2.5, R(0 - 2 * math.cos(sine / 3.5)), R(0)),0.2)
  262.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(62), R(6), R(-39)),0.2/2)
  263.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  264. end
  265. elseif 1 > root.Velocity.y then
  266.         rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(80),R(180),R(0)),0.2)
  267.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(-10),R(0),R(0)),0.2)
  268.         lh.C0 = lh.C0:lerp(CFN(-0.5,-1, 0)*CFA(R(50), R(0), R(0)),0.2)
  269.         rh.C0 = rh.C0:lerp(CFN(0.5,-1, 0)*CFA(R(20), R(0), R(0)),0.2)
  270.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(-20), R(0), R(-10)),0.2)
  271.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(-20), R(0), R(10)),0.2)
  272.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  273. elseif 1 < root.Velocity.y then
  274.         rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(110),R(180),R(0)),0.2)
  275.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(20),R(0),R(0)),0.2)
  276.         lh.C0 = lh.C0:lerp(CFN(-0.5,-1, 0)*CFA(R(-20), R(0), R(0)),0.2)
  277.         rh.C0 = rh.C0:lerp(CFN(0.5,-1, 0)*CFA(R(-50), R(0), R(0)),0.2)
  278.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(-20), R(0), R(-10)),0.2)
  279.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(-20), R(0), R(10)),0.2)
  280.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  281. elseif humState == Enum.HumanoidStateType.Swimming then
  282.    
  283. elseif humState == Enum.HumanoidStateType.Landed then
  284.    
  285. end
  286.  
  287. else
  288.  
  289. end
  290. end
  291. end
  292. end)
  293.  
  294. --rs.C0 = CFN(1,0.5,-0.5) * CFA(R(0),R(125),R(60))
  295. --ls.C0 = CFN(-1,0.5,-0.5) * CFA(R(0),R(-125),R(-60))
  296.  
  297. --Gun
  298. local gun = Instance.new("Model", chr)
  299. gun.Name = "CGun"
  300.  
  301. local hold = Instance.new("Part", gun)
  302. noOutline(hold)
  303. hold.Size = Vector3.new(.5, .5, 1)
  304. hold.CanCollide = false
  305. hold.Anchored = false
  306. hold.Color = Color3.new(0,0,0)
  307.  
  308. holdW = Instance.new("Weld", hold)
  309. holdW.Part0 = hold
  310. holdW.Part1 = ra
  311. holdW.C1 = CFrame.new(0,-0.85,-0.25) *CFrame.Angles(R(0),R(0),R(0))
  312.  
  313. local barrel = Instance.new("Part", gun)
  314. noOutline(barrel)
  315. barrel.Size = Vector3.new(.5, 2, .4)
  316. barrel.CanCollide = false
  317. barrel.Anchored = false
  318. barrel.Color = Color3.new(0,0,0)
  319.  
  320. local barrelW = Instance.new("Weld", hold)
  321. barrelW.Part0 = barrel
  322. barrelW.Part1 = hold
  323. barrelW.C1 = CFrame.new(0,-0.5,-0.5) *CFrame.Angles(R(0),R(0),R(0))
  324.  
  325. for _,i in pairs(chr:GetDescendants()) do
  326.     if i:IsA("BasePart") then
  327.         i:SetNetworkOwner(plr)
  328.     end
  329. end
  330.  
  331. --Abilities
  332. local fMJDisable = false
  333. local diveDisable = false
  334. local fireDisable = false
  335. function doubleTap() --Cooldown: 0
  336.     if not attacking then
  337.     attacking = true
  338.     hum.WalkSpeed = 0
  339.     for i = 1,2 do
  340.     for i = 0,2,0.3 do
  341.         swait()
  342.         rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(90),R(180),R(60)),0.4)
  343.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(-60),R(0)),0.4)
  344.         lh.C0 = lh.C0:lerp(CFN(-0.5, -1, 0)*CFA(R(0), R(0), R(-10)),0.4)
  345.         rh.C0 = rh.C0:lerp(CFN(0.5, -1, 0)*CFA(R(0), R(0), R(0)),0.4)
  346.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(-40), R(60), R(20)),0.4)
  347.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(90), R(0), R(60)),0.4)
  348.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.4)
  349.     end
  350.     local bullet = Instance.new("Part", gun)
  351.     bullet.Name = "oh no a bullet"
  352.     bullet.CFrame = CFN(barrel.CFrame.p)
  353.     noOutline(bullet)
  354.     bullet.CanCollide = false
  355.     bullet.Transparency = 1
  356.     bullet.Size = Vector3.new(2,2,2)
  357.     bullet.Velocity = barrel.CFrame.upVector * -500
  358.     bullet.Touched:connect(function(partHit)
  359.     local check1 = partHit.Parent
  360.     local check2 = partHit.Parent:FindFirstChildOfClass("Humanoid")
  361.     local check3 = partHit.Parent.Parent
  362.     local check4 = partHit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  363.     if check1.Name ~= chr.Name and check3.Name ~= chr.Name then
  364.     if check1.ClassName == "Model" and check2 ~= nil and check2.Name ~= "Dead" then
  365.     bullet:Destroy()
  366.     local dmg = (baseDamage * 0.6)
  367.     check2.Health = check2.Health - dmg
  368.     local hed = check1.Head
  369.     dmgTxt(dmg,"Hit",CFrame.new(hed.CFrame * CFrame.new(math.random(-20,20)/10,math.random(3,5),math.random(-20,20)/10).p))
  370.     if check2.Health <= 0 and check2.Name ~= "Dead" then
  371.     check2.Name = "Dead"
  372.     gainEXP(check2.MaxHealth)
  373.     end
  374.     elseif check3.ClassName == "Model" and check4 ~= nil and check4.Name ~= "Dead" then
  375.     bullet:Destroy()
  376.     local dmg = (baseDamage * 0.6)
  377.     check4.Health = check4.Health - dmg
  378.     local hed = check3.Head
  379.     dmgTxt(dmg,"Hit",CFrame.new(hed.CFrame * CFrame.new(math.random(-20,20)/10,math.random(3,5),math.random(-20,20)/10).p))
  380. if check4.Health <= 0 and check4.Name ~= "Dead" then
  381.     check4.Name = "Dead"
  382.     gainEXP(check2.MaxHealth)
  383.     end
  384.     end
  385.     end
  386.     end)
  387.     for i = 0,2,0.3 do
  388.         swait()
  389.         rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(90),R(180),R(60)),0.4)
  390.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(-60),R(0)),0.4)
  391.         lh.C0 = lh.C0:lerp(CFN(-0.5, -1, 0)*CFA(R(0), R(0), R(-10)),0.4)
  392.         rh.C0 = rh.C0:lerp(CFN(0.5, -1, 0)*CFA(R(0), R(0), R(0)),0.4)
  393.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(-40), R(60), R(20)),0.4)
  394.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(120), R(30), R(60)),0.4)
  395.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.4)
  396.     end
  397. end
  398.     hum.WalkSpeed = 16
  399.     attacking = false
  400.     end
  401. end
  402. function fullMetalJacket() --Cooldown: 3
  403.     if not attacking and not fMJDisable then
  404.     attacking = true
  405.     hum.WalkSpeed = 0
  406.     for i = 0,2,0.25 do
  407.         swait()
  408.         rj.C0 = rj.C0:lerp(CFN(0,-0.6,0)*CFA(R(90),R(180),R(60)),0.4)
  409.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(-60),R(0)),0.4)
  410.         lh.C0 = lh.C0:lerp(CFN(-0.5, -0.4, -0.6)*CFA(R(0), R(0), R(-30)),0.4)
  411.         rh.C0 = rh.C0:lerp(CFN(0.5, -0.4, -0.6)*CFA(R(-30), R(0), R(0)),0.4)
  412.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(0), R(0), R(-20)),0.4)
  413.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(90), R(0), R(60)),0.4)
  414.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.4)
  415.     end
  416.     local bullet = Instance.new("Part", gun)
  417.     bullet.Name = "oh no a bullet"
  418.     bullet.CFrame = CFN(barrel.CFrame.p)
  419.     noOutline(bullet)
  420.     bullet.CanCollide = false
  421.     bullet.Transparency = 1
  422.     bullet.Size = Vector3.new(2,2,2)
  423.     bullet.Velocity = barrel.CFrame.upVector * -500
  424.  
  425.     bullet.Touched:connect(function(partHit)
  426.     local check1 = partHit.Parent
  427.     local check2 = partHit.Parent:FindFirstChildOfClass("Humanoid")
  428.     local check3 = partHit.Parent.Parent
  429.     local check4 = partHit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  430.     if check1.Name ~= chr.Name and check3.Name ~= chr.Name then
  431.     if check1.ClassName == "Model" and check2 ~= nil and check2.Name ~= "Marked" and check2.Name ~= "Dead" then
  432.     check2.Name = "Marked"
  433.     local dmg = (baseDamage * 2.3)
  434.     check2.Health = check2.Health - dmg
  435.     local hed = check1.Head
  436.     local tors = check1.Torso
  437.     check2.PlatformStand = false
  438.     local knock = Instance.new("BodyVelocity", tors)
  439.     knock.Name = "Knockback"
  440.     knock.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  441.     knock.P = 75000
  442.     knock.Velocity= tors.CFrame.lookVector * -10
  443.     dmgTxt(dmg,"Hit",CFrame.new(hed.CFrame * CFrame.new(math.random(-20,20)/10,math.random(3,5),math.random(-20,20)/10).p))
  444. if check2.Health <= 0 and check2.Name ~= "Dead" then
  445.     check2.Name = "Dead"
  446.     gainEXP(check2.MaxHealth)
  447.     end
  448.     elseif check3.ClassName == "Model" and check4 ~= nil and check4.Name ~= "Marked" and check4.Name ~= "Dead" then
  449.     check4.Name = "Marked"
  450.     local dmg = (baseDamage * 2.3)
  451.     check4.Health = check4.Health - dmg
  452.     local hed = check3.Head
  453. local tors = check3.Torso
  454. check4.PlatformStand = true
  455.     local knock = Instance.new("BodyVelocity", tors)
  456.     knock.Name = "Knockback"
  457.     knock.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  458.     knock.P = 75000
  459.     knock.Velocity= tors.CFrame.lookVector * -10
  460.     dmgTxt(dmg,"Hit",CFrame.new(hed.CFrame * CFrame.new(math.random(-20,20)/10,math.random(3,5),math.random(-20,20)/10).p))
  461. if check4.Health <= 0 and check4.Name ~= "Dead" then
  462.     check4.Name = "Dead"
  463.     gainEXP(check4.MaxHealth)
  464.     end
  465.     end
  466.     end
  467.     end)
  468.     for i = 0,2,0.18 do
  469.         swait()
  470.         rj.C0 = rj.C0:lerp(CFN(0,-0.6,0)*CFA(R(90),R(180),R(60)),0.2)
  471.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(-60),R(0)),0.2)
  472.         lh.C0 = lh.C0:lerp(CFN(-0.5, -0.4, -0.6)*CFA(R(0), R(0), R(-30)),0.2)
  473.         rh.C0 = rh.C0:lerp(CFN(0.5, -0.4, -0.6)*CFA(R(-30), R(0), R(0)),0.2)
  474.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(0), R(0), R(-20)),0.2)
  475.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(120), R(30), R(60)),0.2)
  476.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  477.     end
  478. wait(0.35)
  479. for _, instance in pairs(workspace:GetDescendants()) do
  480.     if instance:IsA("Humanoid") and instance.Name == "Marked" then
  481.         instance.Name = "Humanoid"
  482.         instance.PlatformStand = false
  483.     end
  484.     if instance:IsA("BodyVelocity") and instance.Name == "Knockback" then
  485.         instance:Destroy()
  486.     end
  487. end
  488.     hum.WalkSpeed = 16
  489.     attacking = false
  490. --[[spawn(function()
  491. fMJDisable = true
  492. if mobileCheck then
  493. CAS:SetTitle("E","3")
  494. wait(1)
  495. CAS:SetTitle("E","2")
  496. wait(1)
  497. CAS:SetTitle("E","1")
  498. wait(1)
  499. fMJDisable = false
  500. CAS:SetTitle("E","E")
  501. else
  502. wait(3)
  503. fMJDisable = false
  504. end
  505. end)]]--
  506.     end
  507. end
  508. function tacticalDive() --Cooldown: 4
  509. if not diveDisable and not attacking then
  510. dodging = true
  511. attacking = true
  512. local prevHP = hum.Health
  513. wait(1/60)
  514. hum.WalkSpeed = 30
  515. hum.Jump = true
  516. healthCheck = false
  517. hum.MaxHealth = math.huge
  518. wait(1/60)
  519. hum.Health = hum.MaxHealth
  520. healthCheck = true
  521. local e = 0
  522. for i = 0,2,0.2 do
  523.     swait()
  524.     rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(30),R(180),R(0)),0.2)
  525.     nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(0),R(0)),0.2)
  526.     lh.C0 = lh.C0:lerp(CFN(-0.5, -1, 0)*CFA(R(-70), R(0), R(0)),0.2)
  527.     rh.C0 = rh.C0:lerp(CFN(0.5, -1, 0)*CFA(R(-110), R(0), R(0)),0.2)
  528.     ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(60), R(0), R(0)),0.2)
  529.     rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(40), R(0), R(0)),0.2)
  530.     holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  531. end
  532. for i = 0,4,0.2 do
  533.     swait()
  534.     rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(0),R(180),R(0)),0.2/4)
  535.     nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(0),R(0)),0.2)
  536.     lh.C0 = lh.C0:lerp(CFN(-0.5, -1, 0)*CFA(R(-70), R(0), R(0)),0.2)
  537.     rh.C0 = rh.C0:lerp(CFN(0.5, -1, 0)*CFA(R(-110), R(0), R(0)),0.2)
  538.     ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(60), R(0), R(0)),0.2)
  539.     rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(40), R(0), R(0)),0.2)
  540.     holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  541. end
  542. for i = 0,4,0.4 do
  543.     swait()
  544.     e = i / 4
  545.     rj.C0 = rj.C0:lerp(CFN(0,-0.6,0)*CFA(R(-90),R(180),R(0)),0.2)
  546.     nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(-30),R(0),R(0)),0.2)
  547.     lh.C0 = lh.C0:lerp(CFN(-0.5, -0.4, -0.6)*CFA(R(0), R(0), R(0)),0.2)
  548.     rh.C0 = rh.C0:lerp(CFN(0.5, -0.4, -0.6)*CFA(R(-10), R(0), R(0)),0.2)
  549.     ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(30), R(0), R(20)),0.2)
  550.     rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(30), R(0), R(-20)),0.2)
  551.     holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  552. end
  553. for i = 0,4,0.4 do
  554.     swait()
  555.     e = i / 4
  556.     rj.C0 = rj.C0:lerp(CFN(0,-1.2,0)*CFA(R(180),R(180),R(0)),0.2)
  557.     nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(-30),R(0),R(0)),0.2)
  558.     lh.C0 = lh.C0:lerp(CFN(-0.5, -0.4, -0.6)*CFA(R(0), R(0), R(0)),0.2)
  559.     rh.C0 = rh.C0:lerp(CFN(0.5, -0.4, -0.6)*CFA(R(-10), R(0), R(0)),0.2)
  560.     ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(30), R(0), R(20)),0.2)
  561.     rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(30), R(0), R(-20)),0.2)
  562.     holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  563. end
  564. for i = 0,4,0.4 do
  565.     swait()
  566.     e = i / 4
  567.     rj.C0 = rj.C0:lerp(CFN(0,-0.6,0)*CFA(R(90),R(180),R(0)),0.2)
  568.     nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(-30),R(0),R(0)),0.2)
  569.     lh.C0 = lh.C0:lerp(CFN(-0.5, -0.4, -0.6)*CFA(R(0), R(0), R(0)),0.2)
  570.     rh.C0 = rh.C0:lerp(CFN(0.5, -0.4, -0.6)*CFA(R(-10), R(0), R(0)),0.2)
  571.     ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(30), R(0), R(20)),0.2)
  572.     rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(30), R(0), R(-20)),0.2)
  573.     holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.2)
  574. end
  575.  
  576. hum.WalkSpeed = 16
  577. healthCheck = false
  578. hum.MaxHealth = levelHP
  579. wait(1/60)
  580. hum.Health = prevHP
  581. healthCheck = true
  582. dodging = false
  583. attacking = false
  584. rj.C0 = CFN(0,0,-0.1) * CFA(R(90),R(180),R(0))
  585. --[[spawn(function()
  586. diveDisable = true
  587. if mobileCheck then
  588. CAS:SetTitle("LC","4")
  589. wait(1)
  590. CAS:SetTitle("LC","3")
  591. wait(1)
  592. CAS:SetTitle("LC","2")
  593. wait(1)
  594. CAS:SetTitle("LC","1")
  595. wait(1)
  596. diveDisable = false
  597. CAS:SetTitle("LC","LC")
  598. else
  599. wait(4)
  600. diveDisable = false
  601. end
  602. end)]]--
  603. end
  604. end
  605. function suppressiveFire() --Cooldown: 5
  606.     if not attacking and not fireDisable then
  607.     attacking = true
  608.     hum.WalkSpeed = 0
  609.     for i = 1,6 do
  610.     for i = 0,2,0.6 do
  611.         swait()
  612.         rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(90),R(180),R(60)),0.7)
  613.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(-60),R(0)),0.7)
  614.         lh.C0 = lh.C0:lerp(CFN(-0.5, -1, 0)*CFA(R(0), R(0), R(-10)),0.7)
  615.         rh.C0 = rh.C0:lerp(CFN(0.5, -1, 0)*CFA(R(0), R(0), R(0)),0.7)
  616.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(60), R(120), R(20)),0.7)
  617.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(90), R(0), R(60)),0.7)
  618.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.7)
  619.     end
  620.     local bullet = Instance.new("Part", gun)
  621.     bullet.Name = "oh no a bullet"
  622.     bullet.CFrame = CFN(barrel.CFrame.p)
  623.     noOutline(bullet)
  624.     bullet.CanCollide = false
  625.     bullet.Transparency = 1
  626.     bullet.Size = Vector3.new(2,2,2)
  627.     bullet.Velocity = barrel.CFrame.upVector * -500
  628.     bullet.Touched:connect(function(partHit)
  629.     local check1 = partHit.Parent
  630.     local check2 = partHit.Parent:FindFirstChildOfClass("Humanoid")
  631.     local check3 = partHit.Parent.Parent
  632.     local check4 = partHit.Parent.Parent:FindFirstChildOfClass("Humanoid")
  633.     if check1.Name ~= chr.Name and check3.Name ~= chr.Name then
  634.     if check1.ClassName == "Model" and check2 ~= nil and check2.Name ~= "Dead" then
  635.     bullet:Destroy()
  636.     local dmg = (baseDamage * 0.6)
  637.     check2.Health = check2.Health - dmg
  638.     local hed = check1.Head
  639.     local tors = (check1.Torso or check1.LowerTorso)
  640. if i == 1 then
  641. spawn(function()
  642. tors.Anchored = true
  643. wait(2)
  644. tors.Anchored = false
  645. end)
  646. elseif i == 2 then
  647. spawn(function()
  648. tors.Anchored = true
  649. wait(2)
  650. tors.Anchored = false
  651. end)
  652. elseif i == 3 then
  653. spawn(function()
  654. tors.Anchored = true
  655. wait(2)
  656. tors.Anchored = false
  657. end)
  658. elseif i == 4 then
  659. spawn(function()
  660. tors.Anchored = true
  661. wait(2)
  662. tors.Anchored = false
  663. end)
  664. elseif i == 5 then
  665. spawn(function()
  666. tors.Anchored = true
  667. wait(2)
  668. tors.Anchored = false
  669. end)
  670. elseif i == 6 then
  671. spawn(function()
  672. tors.Anchored = true
  673. wait(2)
  674. tors.Anchored = false
  675. end)
  676. end
  677.     dmgTxt(dmg,"Hit",CFrame.new(hed.CFrame * CFrame.new(math.random(-20,20)/10,math.random(3,5),math.random(-20,20)/10).p))
  678. if check2.Health <= 0 and check2.Name ~= "Dead" then
  679.     check2.Name = "Dead"
  680.     gainEXP(check2.MaxHealth)
  681.     end
  682.     elseif check3.ClassName == "Model" and check4 ~= nil and check4.Name ~= "Dead" then
  683.     bullet:Destroy()
  684.     local dmg = (baseDamage * 0.6)
  685.     check4.Health = check4.Health - dmg
  686.     local hed = check3.Head
  687. local tors = (check3.Torso or check3.LowerTorso)
  688. tors.Anchored = true
  689. if i == 1 then
  690. spawn(function()
  691. tors.Anchored = true
  692. wait(2)
  693. tors.Anchored = false
  694. end)
  695. elseif i == 2 then
  696. spawn(function()
  697. tors.Anchored = true
  698. wait(2)
  699. tors.Anchored = false
  700. end)
  701. elseif i == 3 then
  702. spawn(function()
  703. tors.Anchored = true
  704. wait(2)
  705. tors.Anchored = false
  706. end)
  707. elseif i == 4 then
  708. spawn(function()
  709. tors.Anchored = true
  710. wait(2)
  711. tors.Anchored = false
  712. end)
  713. elseif i == 5 then
  714. spawn(function()
  715. tors.Anchored = true
  716. wait(2)
  717. tors.Anchored = false
  718. end)
  719. elseif i == 6 then
  720. spawn(function()
  721. tors.Anchored = true
  722. wait(2)
  723. tors.Anchored = false
  724. end)
  725. end
  726.     dmgTxt(dmg,"Hit",CFrame.new(hed.CFrame * CFrame.new(math.random(-20,20)/10,math.random(3,5),math.random(-20,20)/10).p))
  727. if check4.Health <= 0 and check4.Name ~= "Dead" then
  728.     check4.Name = "Dead"
  729.     gainEXP(check4.MaxHealth)
  730.     end
  731.     end
  732.     end
  733.     end)
  734.     for i = 0,2,0.6 do
  735.         swait()
  736.         rj.C0 = rj.C0:lerp(CFN(0,0,0)*CFA(R(90),R(180),R(60)),0.7)
  737.         nc.C0 = nc.C0:lerp(CFN(0,1,0)*CFA(R(0),R(-60),R(0)),0.7)
  738.         lh.C0 = lh.C0:lerp(CFN(-0.5, -1, 0)*CFA(R(0), R(0), R(-10)),0.7)
  739.         rh.C0 = rh.C0:lerp(CFN(0.5, -1, 0)*CFA(R(0), R(0), R(0)),0.7)
  740.         ls.C0 = ls.C0:lerp(CFN(-1.5, 0.5, 0)*CFA(R(60), R(120), R(20)),0.7)
  741.         rs.C0 = rs.C0:lerp(CFN(1.5, 0.5, 0)*CFA(R(120), R(30), R(60)),0.7)
  742.         holdW.C1 = holdW.C1:lerp(CFN(0,-0.85,-0.25) *CFA(R(0),R(0),R(0)),0.7)
  743.     end
  744. end
  745.     hum.WalkSpeed = 16
  746.     attacking = false
  747. --[[spawn(function()
  748. fireDisable = true
  749. if mobileCheck then
  750. CAS:SetTitle("R","5")
  751. wait(1)
  752. CAS:SetTitle("R","4")
  753. wait(1)
  754. CAS:SetTitle("R","3")
  755. wait(1)
  756. CAS:SetTitle("R","2")
  757. wait(1)
  758. CAS:SetTitle("R","1")
  759. wait(1)
  760. fireDisable = false
  761. CAS:SetTitle("R","R")
  762. else
  763. wait(4)
  764. fireDisable = false
  765. end
  766. end)]]--
  767.     end
  768. end
  769.  
  770. --Leveling system
  771. local xpLevelGain = 125 * (level * 1.5)
  772. local xpLevel = 0
  773. function gainEXP(maxHP)
  774. xpLevel = xpLevel + maxHP
  775. if xpLevel >= xpLevelGain then
  776. level = level + 1
  777. xpLevel = 0
  778. xpLevelGain = 125 * (level * 1.5)
  779. levelHP = 78 + (32 * level)
  780. healthCheck = false
  781. hum.MaxHealth = levelHP
  782. swait()
  783. hum.Health = hum.Health + 32
  784. healthCheck = true
  785. baseDamage = 9 + (3 * level)
  786. levelRegen = 0.48 + (0.12 * level)
  787. dmgTxt("Level Up","Level",CFrame.new(head.CFrame * CFrame.new(math.random(-20,20)/10,math.random(3,5),math.random(-20,20)/10).p))
  788. print(level.."-"..xpLevelGain)
  789. end
  790. end
  791.  
  792. --Control + Info
  793. function controlRead()
  794. print"The Commando is characterized by long range and mobility.\nEffective use of his Tactical Dive will grant increased survivability,\nwhile suppressive fire deals massive damage.\nFMJ can then be used to dispose of large mobs.\n"
  795.  
  796. print"Mouse1: Double Tap (Shoot twice for 2x60% damage.)\nE: Full Metal Jacket (Shoot through enemies for 230% damage, knocking them back.)\nLeft Control: Tactical Dive (Roll forward a small distance. You cannot be hit while rolling.)\nR: Suppressive Fire (Fire rapidly, stunning and hitting nearby enemies for 6x60% damage.)\nM: Music Control"
  797. end
  798.  
  799. hum.Died:connect(function()
  800. local billBoardGui = Instance.new("BillboardGui",head)
  801. billBoardGui.Size = UDim2.new(0,200,0,50)
  802. billBoardGui.StudsOffset = Vector3.new(0,3,0)
  803. local textLabelGui = Instance.new("TextLabel",billBoardGui)
  804. textLabelGui.BackgroundTransparency = 1
  805. textLabelGui.Size = UDim2.new(10,0,1,0)
  806. textLabelGui.Position = UDim2.new(-4.5,0,0,0)
  807. textLabelGui.Font = "SourceSans"
  808. textLabelGui.TextSize = 15
  809. textLabelGui.TextColor3 = Color3.new(1,1,1)
  810. textLabelGui.TextStrokeColor3 = Color3.new(0,0,0)
  811. textLabelGui.TextStrokeTransparency = 0
  812. textLabelGui.TextWrapped = true
  813. local deathMessage = math.random(1,18)
  814. if deathMessage == 1 then
  815. textLabelGui.Text = "You are dead."
  816. elseif deathMessage == 2 then
  817. textLabelGui.Text = "You embrace the void."
  818. elseif deathMessage == 3 then
  819. textLabelGui.Text = "You had a lot more to live for."
  820. elseif deathMessage == 4 then
  821. textLabelGui.Text = "You died painlessly."
  822. elseif deathMessage == 5 then
  823. textLabelGui.Text = "Your death was extremely painful."
  824. elseif deathMessage == 6 then
  825. textLabelGui.Text = "You die a slightly embarassing death."
  826. elseif deathMessage == 7 then
  827. textLabelGui.Text = "You die in a hilarious pose."
  828. elseif deathMessage == 8 then
  829. textLabelGui.Text = "You really messed up."
  830. elseif deathMessage == 9 then
  831. textLabelGui.Text = "It wasn't your time to die..."
  832. elseif deathMessage == 10 then
  833. textLabelGui.Text = "That was definitely not your fault."
  834. elseif deathMessage == 11 then
  835. textLabelGui.Text = "That was absolutely your fault."
  836. elseif deathMessage == 12 then
  837. textLabelGui.Text = "..the harder they fall."
  838. elseif deathMessage == 13 then
  839. textLabelGui.Text = "Beep.. beep.. beeeeeeeeeeeeeeeee"
  840. elseif deathMessage == 14 then
  841. textLabelGui.Text = "Crushed."
  842. elseif deathMessage == 15 then
  843. textLabelGui.Text = "DEAD"
  844. elseif deathMessage == 16 then
  845. textLabelGui.Text = "ded"
  846. elseif deathMessage == 17 then
  847. textLabelGui.Text = "rekt"
  848. elseif deathMessage == 18 then
  849. textLabelGui.Text = "ur dead LOL get rekt"
  850. end
  851. end)
  852.  
  853. thatGoodBoi.OnServerEvent:connect(function(plr,action)
  854. if action == 1 then
  855. doubleTap()
  856. elseif action == 2 then
  857. fullMetalJacket()
  858. elseif action == 3 then
  859. tacticalDive()
  860. elseif action == 4 then
  861. suppressiveFire()
  862. elseif action == 5 then
  863. musicCtrl()
  864. elseif action == 6 then
  865. controlRead()
  866. end
  867. end)
  868.  
  869. elseif script.ClassName == "LocalScript" then
  870. local plr = game:service'Players'.LocalPlayer
  871. local CAS = game:service'ContextActionService'
  872. local uIS = game:service'UserInputService'
  873. print"Run this using h/ or r/ FIRST, then run it using hl/ or rl/"
  874. local thatGoodBoi = plr.Character["Commando Remote"]
  875. local fMJDisable = false
  876. local diveDisable = false
  877. local fireDisable = false
  878.  
  879. --Checks if player is on PC or on Mobile
  880. local mobileCheck
  881. if uIS.TouchEnabled and not uIS.KeyboardEnabled then
  882.     mobileCheck = true
  883.     else
  884.     mobileCheck = false
  885. end
  886.  
  887. --Controlsssssss
  888. if mobileCheck then
  889.  
  890. function createButton(name,xpos,ypos,action,keybind)
  891.     local trueX = xpos - (xpos * 2)
  892.     local trueY = ypos - (ypos * 2)
  893.     CAS:BindAction(name,action,true,Enum.KeyCode[keybind])
  894.     CAS:SetTitle(name,name)
  895.     CAS:SetPosition(name, UDim2.new(0.72, trueX, 0.20, trueY))
  896. end
  897.  
  898. function removeButton(name)
  899.     if name == "all" then
  900.         CAS:UnbindAllActions()
  901.     else
  902.         CAS:UnbindAction(name)
  903.     end
  904. end
  905.  
  906. function mobileButtonPress(r,g,b)
  907. if g == Enum.UserInputState.Begin then
  908. if r == "M1" then
  909. thatGoodBoi:FireServer(1)
  910. elseif r == "E" then
  911. if not fMJDisable then
  912. fMJDisable = true
  913. spawn(function()
  914. CAS:SetTitle("E","3")
  915. wait(1)
  916. CAS:SetTitle("E","2")
  917. wait(1)
  918. CAS:SetTitle("E","1")
  919. wait(1)
  920. CAS:SetTitle("E","E")
  921. fMJDisable = false
  922. end)
  923. thatGoodBoi:FireServer(2)
  924. end
  925. elseif r == "LC" then
  926. if not diveDisable then
  927. diveDisable = true
  928. spawn(function()
  929. CAS:SetTitle("LC","4")
  930. wait(1)
  931. CAS:SetTitle("LC","3")
  932. wait(1)
  933. CAS:SetTitle("LC","2")
  934. wait(1)
  935. CAS:SetTitle("LC","1")
  936. wait(1)
  937. CAS:SetTitle("LC","LC")
  938. diveDisable = false
  939. end)
  940. thatGoodBoi:FireServer(3)
  941. end
  942. elseif r == "R" then --wow
  943. if not fireDisable then
  944. fireDisable = true
  945. spawn(function()
  946. CAS:SetTitle("R","5")
  947. wait(1)
  948. CAS:SetTitle("R","4")
  949. wait(1)
  950. CAS:SetTitle("R","3")
  951. wait(1)
  952. CAS:SetTitle("R","2")
  953. wait(1)
  954. CAS:SetTitle("R","1")
  955. wait(1)
  956. CAS:SetTitle("R","R")
  957. fireDisable = false
  958. end)
  959. thatGoodBoi:FireServer(4)
  960. end
  961. elseif r == "M" then
  962. thatGoodBoi:FireServer(5)
  963. elseif r == "C" then
  964. thatGoodBoi:FireServer(6)
  965. end
  966. end
  967. end
  968.  
  969. createButton("M1",75,25,mobileButtonPress,"Q")
  970. createButton("E",25,25,mobileButtonPress,"E")
  971. createButton("LC",75,75,mobileButtonPress,"LeftControl")
  972. createButton("R",25,75,mobileButtonPress,"R")
  973. createButton("M",50,125,mobileButtonPress,"M")
  974. --createButton("C",50,175,mobileButtonPress,"C")
  975. else
  976. uIS.InputBegan:connect(function(r,gamePro)
  977. if not gamePro then
  978. if r.UserInputType == Enum.UserInputType.MouseButton1 then
  979. thatGoodBoi:FireServer(1)
  980. elseif r.KeyCode == Enum.KeyCode.E then
  981. if not fMJDisable then
  982. spawn(function()
  983. fMJDisable = true
  984. wait(3)
  985. fMJDisable = false
  986. end)
  987. thatGoodBoi:FireServer(2)
  988. end
  989. elseif r.KeyCode == Enum.KeyCode.LeftControl then
  990. if not diveDisable then
  991. spawn(function()
  992. diveDisable = true
  993. wait(4)
  994. diveDisable = false
  995. end)
  996. thatGoodBoi:FireServer(3)
  997. end
  998. elseif r.KeyCode == Enum.KeyCode.R then --wow
  999. if not fireDisable then
  1000. spawn(function()
  1001. fireDisable = true
  1002. wait(5)
  1003. fireDisable = false
  1004. end)
  1005. thatGoodBoi:FireServer(4)
  1006. end
  1007. elseif r.KeyCode == Enum.KeyCode.M then
  1008. thatGoodBoi:FireServer(5)
  1009. elseif r.KeyCode == Enum.KeyCode.C then
  1010. thatGoodBoi:FireServer(6)
  1011. end
  1012. end
  1013. end)
  1014.  
  1015.  
  1016. end
  1017.  
  1018.  
  1019.  
  1020. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement