Advertisement
degesak

stolen

Oct 15th, 2018
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.63 KB | None | 0 0
  1. warn[[-------("M249 Gunner")-------
  2.  
  3. -MoveList-
  4.  
  5. ---------------------------------------------------
  6. E = Equip/Unequip, click to shoot, hold to spray
  7. T = Taunt
  8. ---------------------------------------------------]]
  9. --Credits to Shackluster for the refit/anti-breakjoints function, he's a cool guy/great scripter.--
  10. --Ayy i'm not dead yet, take that haters, if i even had any to begin with.--
  11. --Keeping this script small since big ones will cause major lag & exceed script limits--
  12. --Using a FE converter because i'm way too lazy to create remotes for it--
  13.  
  14. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  15. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  16. local RealPlayer = Player
  17. do warn[[FE By Mokiros]]local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  18.  
  19.  
  20. Player=game:GetService("Players").LocalPlayer
  21. Character=Player.Character
  22. Effects = { }
  23. hum = Character.Humanoid
  24. hum.MaxHealth = 150
  25. hum.Health = 150
  26. LeftArm=Character["Left Arm"]
  27. LeftLeg=Character["Left Leg"]
  28. RightArm=Character["Right Arm"]
  29. RightLeg=Character["Right Leg"]
  30. Root=Character["HumanoidRootPart"]
  31. Head=Character["Head"]
  32. Torso=Character["Torso"]
  33. Neck=Torso["Neck"]
  34. mouse = Player:GetMouse()
  35. walking = false
  36. jumping = false
  37. attacking = false
  38. firsttime = false
  39. tauntdebounce = false
  40. tauntdevvbunced = false
  41. tauntdebufat = false
  42. position = nil
  43. MseGuide = true
  44. running = false
  45. settime = 0
  46. sine = 0
  47. t = 0
  48. ws = 18
  49. change = 1
  50. combo1 = true
  51. equip = false
  52. dgs = 75
  53. combo2 = false
  54. switch1 = true
  55. switch2 = false
  56. firsttime2 = false
  57. combo3 = false
  58. gunallowance = false
  59. shooting = false
  60. RunSrv = game:GetService("RunService")
  61. RenderStepped = game:GetService("RunService").RenderStepped
  62. removeuseless = game:GetService("Debris")
  63. face = Head:WaitForChild('face')
  64.  
  65.  
  66. local HEADLERP = Instance.new("ManualWeld")
  67. HEADLERP.Parent = Head
  68. HEADLERP.Part0 = Head
  69. HEADLERP.Part1 = Head
  70. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  71.  
  72. local TORSOLERP = Instance.new("ManualWeld")
  73. TORSOLERP.Parent = Root
  74. TORSOLERP.Part0 = Torso
  75. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  76.  
  77. local ROOTLERP = Instance.new("ManualWeld")
  78. ROOTLERP.Parent = Root
  79. ROOTLERP.Part0 = Root
  80. ROOTLERP.Part1 = Torso
  81. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  82.  
  83. local RIGHTARMLERP = Instance.new("ManualWeld")
  84. RIGHTARMLERP.Parent = RightArm
  85. RIGHTARMLERP.Part0 = RightArm
  86. RIGHTARMLERP.Part1 = Torso
  87. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  88.  
  89. local LEFTARMLERP = Instance.new("ManualWeld")
  90. LEFTARMLERP.Parent = LeftArm
  91. LEFTARMLERP.Part0 = LeftArm
  92. LEFTARMLERP.Part1 = Torso
  93. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  94.  
  95. local RIGHTLEGLERP = Instance.new("ManualWeld")
  96. RIGHTLEGLERP.Parent = RightLeg
  97. RIGHTLEGLERP.Part0 = RightLeg
  98. RIGHTLEGLERP.Part1 = Torso
  99. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  100.  
  101. local LEFTLEGLERP = Instance.new("ManualWeld")
  102. LEFTLEGLERP.Parent = LeftLeg
  103. LEFTLEGLERP.Part0 = LeftLeg
  104. LEFTLEGLERP.Part1 = Torso
  105. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  106.  
  107. local function weldBetween(a, b)
  108. local weld = Instance.new("ManualWeld", a)
  109. weld.Part0 = a
  110. weld.Part1 = b
  111. weld.C0 = a.CFrame:inverse() * b.CFrame
  112. return weld
  113. end
  114.  
  115. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  116. A = Instance.new("Attachment", PARENT)
  117. A.Position = POSITION1
  118. A.Name = "A"
  119. B = Instance.new("Attachment", PARENT)
  120. B.Position = POSITION2
  121. B.Name = "B"
  122. tr1 = Instance.new("Trail", PARENT)
  123. tr1.Attachment0 = A
  124. tr1.Attachment1 = B
  125. tr1.Enabled = true
  126. tr1.Lifetime = LIFETIME
  127. tr1.TextureMode = "Static"
  128. tr1.LightInfluence = 0
  129. tr1.Color = COLOR
  130. tr1.Transparency = NumberSequence.new(0, 1)
  131. end
  132.  
  133.  
  134. shirt = Instance.new("Shirt", Character)
  135. shirt.Name = "Shirt"
  136. pants = Instance.new("Pants", Character)
  137. pants.Name = "Pants"
  138. Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=442135847"
  139. Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=442135948"
  140.  
  141. skull = Instance.new("Part",Character)
  142. skull.Size = Vector3.new(2,2,2)
  143. skull.CFrame = Head.CFrame
  144. skull.CanCollide = false
  145. skullweld = Instance.new("Weld",skull)
  146. skullweld.Part0 = skull
  147. skullweld.Part1 = Head
  148. skullweld.C0 = skull.CFrame:inverse() * Head.CFrame
  149. mskull = Instance.new("SpecialMesh", skull)
  150. mskull.MeshType = "FileMesh"
  151. mskull.Scale = Vector3.new(1.12, 1.12, 1.12)
  152. mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=63649767','http://www.roblox.com/asset/?id=63649781'
  153. fedora = Instance.new("Part",Character)
  154. fedora.Size = Vector3.new(2,2,2)
  155. fedora.CFrame = Head.CFrame
  156. fedora.CanCollide = false
  157. fedoraweld = Instance.new("Weld",fedora)
  158. fedoraweld.Part0 = fedora
  159. fedoraweld.Part1 = Head
  160. fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.8,0)
  161. mfedora = Instance.new("SpecialMesh", fedora)
  162. mfedora.MeshType = "FileMesh"
  163. mfedora.Scale = Vector3.new(1.1, 1.1, 1.1)
  164. mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=0','http://www.roblox.com/asset/?id=0'
  165. tommygun = Instance.new("Part",Character)
  166. tommygun.Size = Vector3.new(2,2,2)
  167. tommygun.CFrame = RightArm.CFrame
  168. tommygun.CanCollide = false
  169. tommygunweld = Instance.new("Weld",tommygun)
  170. tommygunweld.Part0 = tommygun
  171. tommygunweld.Part1 = RightArm
  172. tommygunweld.C0 = tommygun.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(90),0)
  173. mtommygun = Instance.new("SpecialMesh", tommygun)
  174. mtommygun.MeshType = "FileMesh"
  175. mtommygun.Scale = Vector3.new(1, 1, 1)
  176. mtommygun.MeshId,mtommygun.TextureId = 'http://www.roblox.com/asset/?id=840411856','http://www.roblox.com/asset/?id=840411696'
  177. shootbox = Instance.new("Part",Character)
  178. shootbox.Size = Vector3.new(.2,.2,.2)
  179. shootbox.CanCollide = false
  180. shootbox.Transparency = 1
  181. shootbox.CFrame = tommygun.CFrame
  182. shootboxweld = weldBetween(shootbox,tommygun)
  183. shootboxweld.C0 = CFrame.new(-0.1,-.25,-2.42)
  184. light = Instance.new("PointLight", shootbox)
  185. light.Color = BrickColor.new("Bright yellow").Color
  186. light.Range = 5
  187. light.Brightness = 11
  188. light.Enabled = false
  189. particlemiter1 = Instance.new("ParticleEmitter", shootbox)
  190. particlemiter1.Enabled = false
  191. particlemiter1.Texture = "rbxassetid://461242617"
  192. particlemiter1.Lifetime = NumberRange.new(.1)
  193. particlemiter1.Size = NumberSequence.new(1,0)
  194. particlemiter1.Rate = 20
  195. particlemiter1.RotSpeed = NumberRange.new(0)
  196. particlemiter1.Speed = NumberRange.new(0)
  197. tommygunammo = Instance.new("Part",Character)
  198. tommygunammo.Size = Vector3.new(2,2,2)
  199. tommygunammo.CFrame = tommygun.CFrame
  200. tommygunammo.CanCollide = false
  201. tommygunammoweld = Instance.new("Weld",tommygunammo)
  202. tommygunammoweld.Part0 = tommygunammo
  203. tommygunammoweld.Part1 = tommygun
  204. tommygunammoweld.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(-0.1,.35,.25) * CFrame.Angles(math.rad(0),math.rad(0),0)
  205. mtommygunammo = Instance.new("SpecialMesh", tommygunammo)
  206. mtommygunammo.MeshType = "FileMesh"
  207. mtommygunammo.Scale = Vector3.new(1, 1, 1)
  208. mtommygunammo.MeshId,mtommygunammo.TextureId = 'http://www.roblox.com/asset/?id=840413412','http://www.roblox.com/asset/?id=840411696'
  209.  
  210. tommygunammo2 = Instance.new("Part",Character)
  211. tommygunammo2.Size = Vector3.new(2,2,2)
  212. tommygunammo2.CFrame = tommygun.CFrame
  213. tommygunammo2.CanCollide = false
  214. tommygunammoweld2 = Instance.new("Weld",tommygunammo2)
  215. tommygunammoweld2.Part0 = tommygunammo2
  216. tommygunammoweld2.Part1 = tommygun
  217. tommygunammoweld2.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(-0.2,-.17,.25) * CFrame.Angles(math.rad(0),math.rad(0),0)
  218. mtommygunammo2 = Instance.new("SpecialMesh", tommygunammo2)
  219. mtommygunammo2.MeshType = "FileMesh"
  220. mtommygunammo2.Scale = Vector3.new(1, 1, 1)
  221. mtommygunammo2.MeshId,mtommygunammo2.TextureId = 'http://www.roblox.com/asset/?id=840415547','http://www.roblox.com/asset/?id=840411696'
  222.  
  223. tommygunammo2 = Instance.new("Part",Character)
  224. tommygunammo2.Size = Vector3.new(2,2,2)
  225. tommygunammo2.CFrame = tommygun.CFrame
  226. tommygunammo2.CanCollide = false
  227. tommygunammoweld2 = Instance.new("Weld",tommygunammo2)
  228. tommygunammoweld2.Part0 = tommygunammo2
  229. tommygunammoweld2.Part1 = tommygun
  230. tommygunammoweld2.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(-.1,-.40,.53) * CFrame.Angles(math.rad(0),math.rad(0),0)
  231. mtommygunammo2 = Instance.new("SpecialMesh", tommygunammo2)
  232. mtommygunammo2.MeshType = "FileMesh"
  233. mtommygunammo2.Scale = Vector3.new(1, 1, 1)
  234. mtommygunammo2.MeshId,mtommygunammo2.TextureId = 'http://www.roblox.com/asset/?id=840416470','http://www.roblox.com/asset/?id=840411696'
  235.  
  236. coroutine.wrap(function()
  237. for i,v in pairs(Character:GetChildren()) do
  238. if v.Name == "Animate" then v:Remove()
  239. end
  240. end
  241. end)()
  242.  
  243. function damagealll(Radius,Position)
  244. local Returning = {}
  245. for _,v in pairs(workspace:GetChildren()) do
  246. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  247. if v:FindFirstChild("Torso") then
  248. local Mag = (v.Torso.Position - Position).magnitude
  249. if Mag < Radius then
  250. table.insert(Returning,v)
  251. end
  252. elseif v:FindFirstChild("UpperTorso") then
  253. local Mag = (v.UpperTorso.Position - Position).magnitude
  254. if Mag < Radius then
  255. table.insert(Returning,v)
  256. end
  257. end
  258. end
  259. end
  260. return Returning
  261. end
  262.  
  263. ArtificialHB = Instance.new("BindableEvent", script)
  264. ArtificialHB.Name = "Heartbeat"
  265. script:WaitForChild("Heartbeat")
  266.  
  267. frame = 1 / 60
  268. tf = 0
  269. allowframeloss = false
  270. tossremainder = false
  271.  
  272.  
  273. lastframe = tick()
  274. script.Heartbeat:Fire()
  275.  
  276.  
  277. game:GetService("RunService").Heartbeat:connect(function(s, p)
  278. tf = tf + s
  279. if tf >= frame then
  280. if allowframeloss then
  281. script.Heartbeat:Fire()
  282. lastframe = tick()
  283. else
  284. for i = 1, math.floor(tf / frame) do
  285. script.Heartbeat:Fire()
  286. end
  287. lastframe = tick()
  288. end
  289. if tossremainder then
  290. tf = 0
  291. else
  292. tf = tf - frame * math.floor(tf / frame)
  293. end
  294. end
  295. end)
  296.  
  297. function swait(num)
  298. if num == 0 or num == nil then
  299. game:service("RunService").Stepped:wait(0)
  300. else
  301. for i = 0, num do
  302. game:service("RunService").Stepped:wait(0)
  303. end
  304. end
  305. end
  306.  
  307. doomtheme = Instance.new("Sound", Torso)
  308. doomtheme.Volume = 5
  309. doomtheme.Name = "doomtheme"
  310. doomtheme.Looped = true
  311. doomtheme.SoundId = "rbxassetid://150755805"
  312. doomtheme:Play()
  313.  
  314. Torso.ChildRemoved:connect(function(removed)
  315. if removed.Name == "doomtheme" then
  316.  
  317. doomtheme = Instance.new("Sound", Torso)
  318. doomtheme.Volume = 5
  319. doomtheme.Name = "doomtheme"
  320. doomtheme.Looped = true
  321. doomtheme.SoundId = "rbxassetid://150755805"
  322. doomtheme:Play()
  323. end
  324. end)
  325.  
  326. for _,x in pairs(Character:GetChildren()) do
  327. if x:IsA("Decal") then x:Remove() end
  328. end
  329.  
  330. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  331. so = Instance.new("Sound")
  332. so.Parent = PARENT
  333. so.SoundId = "rbxassetid://"..ID
  334. so.Volume = VOL
  335. so.Looped = LOOP
  336. so:Play()
  337. removeuseless:AddItem(so,REMOVE)
  338. end
  339.  
  340. mouse.KeyDown:connect(function(Press)
  341. Press=Press:lower()
  342. if Press=='p' then
  343. if tauntdebounce then return end
  344. tauntdebounce = true
  345. local b1 = Instance.new("BillboardGui",Head)
  346. b1.Size = UDim2.new(0,4,0,1.6)
  347. b1.StudsOffset = Vector3.new(0,0,0)
  348. b1.Name = "laff"
  349. b1.AlwaysOnTop = true
  350. b1.StudsOffset = Vector3.new(0,2,0)
  351. b1.Adornee = Head
  352. removeuseless:AddItem(b1,3)
  353. local b2 = Instance.new("TextLabel",b1)
  354. b2.BackgroundTransparency = 1
  355. b2.Text = "I'm Going In!"
  356. b2.Font = "Garamond"
  357. b2.TextSize = 30
  358. b2.Name = "lafftext"
  359. b2.TextStrokeTransparency = 0
  360. b2.TextColor3 = BrickColor.new("Bright red").Color
  361. b2.TextStrokeColor3 = Color3.new(0,0,0)
  362. b2.Size = UDim2.new(1,0,.5,0)
  363. laff = Instance.new("Sound",Head)
  364. laff.SoundId = "rbxassetid://1276212391"
  365. laff.Volume = 100
  366. laff.Pitch = 1
  367. laff:Play()
  368. wait(5)
  369. laff:Remove()
  370. tauntdebounce = false
  371.  
  372. elseif Press=='r' then
  373. if tauntdebounce then return end
  374. tauntdebounce = true
  375. local b1 = Instance.new("BillboardGui",Head)
  376. b1.Size = UDim2.new(0,4,0,1.6)
  377. b1.StudsOffset = Vector3.new(0,0,0)
  378. b1.Name = "laff"
  379. b1.AlwaysOnTop = true
  380. b1.StudsOffset = Vector3.new(0,2,0)
  381. b1.Adornee = Head
  382. removeuseless:AddItem(b1,3)
  383. local b2 = Instance.new("TextLabel",b1)
  384. b2.BackgroundTransparency = 1
  385. b2.Text = "We Got A Hostile!"
  386. b2.Font = "Garamond"
  387. b2.TextSize = 30
  388. b2.Name = "lafftext"
  389. b2.TextStrokeTransparency = 0
  390. b2.TextColor3 = BrickColor.new("Bright red").Color
  391. b2.TextStrokeColor3 = Color3.new(0,0,0)
  392. b2.Size = UDim2.new(1,0,.5,0)
  393. laff = Instance.new("Sound",Head)
  394. laff.SoundId = "rbxassetid://1276212891"
  395. laff.Volume = 100
  396. laff.Pitch = 1
  397. laff:Play()
  398. wait(5)
  399. laff:Remove()
  400. tauntdebounce = false
  401.  
  402.  
  403. elseif Press=='q' then
  404. if tauntdebounce then return end
  405. tauntdebounce = true
  406. local b1 = Instance.new("BillboardGui",Head)
  407. b1.Size = UDim2.new(0,4,0,1.6)
  408. b1.StudsOffset = Vector3.new(0,0,0)
  409. b1.Name = "laff"
  410. b1.AlwaysOnTop = true
  411. b1.StudsOffset = Vector3.new(0,2,0)
  412. b1.Adornee = Head
  413. removeuseless:AddItem(b1,3)
  414. local b2 = Instance.new("TextLabel",b1)
  415. b2.BackgroundTransparency = 1
  416. b2.Text = "Push Forward!"
  417. b2.Font = "Garamond"
  418. b2.TextSize = 30
  419. b2.Name = "lafftext"
  420. b2.TextStrokeTransparency = 0
  421. b2.TextColor3 = BrickColor.new("Bright red").Color
  422. b2.TextStrokeColor3 = Color3.new(0,0,0)
  423. b2.Size = UDim2.new(1,0,.5,0)
  424. laff = Instance.new("Sound",Head)
  425. laff.SoundId = "rbxassetid://1276213552"
  426. laff.Volume = 100
  427. laff.Pitch = 1
  428. laff:Play()
  429. wait(5)
  430. laff:Remove()
  431. tauntdebounce = false
  432. end
  433. end)
  434.  
  435.  
  436.  
  437. function GetDudesTorso(c)
  438. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  439. if torsy ~= nil then
  440. return torsy
  441. end
  442. end
  443.  
  444. function Dmg(dude)
  445. if dude and dude ~= Character then
  446. local hum = dude:FindFirstChildOfClass("Humanoid")
  447. if hum ~= nil then
  448. hum.Health = hum.Health -math.random(1,2.5)
  449. end
  450. if hum.Health > 100 then
  451. dude:BreakJoints()
  452. end
  453. end
  454. end
  455.  
  456. EffectModel = Instance.new("Model")
  457. EffectModel.Parent = Character
  458. EffectModel.Name = "Effects"
  459.  
  460.  
  461. --Effect Functions--
  462. Effects = {
  463.  
  464. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  465. local p = Instance.new("Part",EffectModel)
  466. p.BrickColor = BrickColor.new(colour)
  467. p.Size = partsize
  468. p.Anchored = true
  469. p.CanCollide = false
  470. p.Material = matr
  471. p.CFrame = cf
  472.  
  473. local m = Instance.new("BlockMesh",p)
  474. m.Scale = meshstart
  475. coroutine.wrap(function()
  476. for i=0,1,factor do
  477. swait()
  478.  
  479. m.Scale = m.Scale + meshadd
  480. if spin == true then
  481. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  482. end
  483. end
  484. p:Destroy()
  485. end)()
  486. return p
  487. end,
  488. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  489. local p = Instance.new("Part",EffectModel)
  490. p.BrickColor = BrickColor.new(colour)
  491. p.Size = partsize
  492. p.Anchored = true
  493. p.CanCollide = false
  494. p.Material = matr
  495. p.CFrame = cf
  496. if inverse == true then
  497. p.Transparency = 1
  498. else
  499. p.Transparency = 0
  500. end
  501. local m = Instance.new("SpecialMesh",p)
  502. m.MeshType = "Sphere"
  503. m.Scale = meshstart
  504. coroutine.wrap(function()
  505. for i=0,1,factor do
  506. swait()
  507. if inverse == true then
  508. p.Transparency = 1-i
  509. else
  510. p.Transparency = i
  511. end
  512. m.Scale = m.Scale + meshadd
  513. end
  514. p:Destroy()
  515. end)()
  516. return p
  517. end,
  518.  
  519. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  520. local p = Instance.new("Part",EffectModel)
  521. p.BrickColor = BrickColor.new(colour)
  522. p.Size = partsize
  523. p.Anchored = true
  524. p.CanCollide = false
  525. p.Material = matr
  526. p.CFrame = cf
  527. if inverse == true then
  528. p.Transparency = 1
  529. else
  530. p.Transparency = 0
  531. end
  532. local m = Instance.new("CylinderMesh",p)
  533. m.Scale = meshstart
  534. coroutine.wrap(function()
  535. for i=0,1,factor do
  536. swait()
  537. if inverse == true then
  538. p.Transparency = 1-i
  539. else
  540. p.Transparency = i
  541. end
  542. m.Scale = m.Scale + meshadd
  543. end
  544. p:Destroy()
  545. end)()
  546. return p
  547. end,
  548.  
  549. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  550. local p = Instance.new("Part",EffectModel)
  551. p.BrickColor = BrickColor.new(colour)
  552. p.Size = Vector3.new()
  553. p.Anchored = true
  554. p.CanCollide = false
  555. p.CFrame = cf
  556. if inverse == true then
  557. p.Transparency = 1
  558. else
  559. p.Transparency = 0
  560. end
  561. local m = Instance.new("SpecialMesh",p)
  562. m.MeshId = "rbxassetid://461242619"
  563. m.Scale = meshstart
  564. coroutine.wrap(function()
  565. for i=0,1,factor do
  566. swait()
  567. if inverse == true then
  568. p.Transparency = 1-i
  569. else
  570. p.Transparency = i
  571. end
  572. m.Scale = m.Scale + meshadd
  573. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  574. end
  575. p:Destroy()
  576. end)()
  577. return p
  578. end,
  579.  
  580. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  581. local p = Instance.new("Part",EffectModel)
  582. p.BrickColor = BrickColor.new(colour)
  583. p.Size = Vector3.new()
  584. p.Anchored = true
  585. p.CanCollide = false
  586. p.CFrame = cf
  587. if inverse == true then
  588. p.Transparency = 1
  589. else
  590. p.Transparency = 0
  591. end
  592. local m = Instance.new("SpecialMesh",p)
  593. m.MeshId = "rbxassetid://3270017"
  594. m.Scale = meshstart
  595. coroutine.wrap(function()
  596. for i=0,1,factor do
  597. swait()
  598. if inverse == true then
  599. p.Transparency = 1-i
  600. else
  601. p.Transparency = i
  602. end
  603. m.Scale = m.Scale + meshadd
  604. end
  605. p:Destroy()
  606. end)()
  607. return p
  608. end,
  609.  
  610. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  611. local p = Instance.new("Part",EffectModel)
  612. p.BrickColor = BrickColor.new(colour)
  613. p.Size = Vector3.new()
  614. p.Anchored = true
  615. p.CanCollide = false
  616. p.CFrame = cf
  617. if inverse == true then
  618. p.Transparency = 1
  619. else
  620. p.Transparency = 0
  621. end
  622. local m = Instance.new("SpecialMesh",p)
  623. m.MeshId = meshid
  624. m.TextureId = textid
  625. m.Scale = meshstart
  626. coroutine.wrap(function()
  627. for i=0,1,factor do
  628. swait()
  629. if inverse == true then
  630. p.Transparency = 1-i
  631. else
  632. p.Transparency = i
  633. end
  634. m.Scale = m.Scale + meshadd
  635. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  636. end
  637. p:Destroy()
  638. end)()
  639. return p
  640. end,
  641.  
  642. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  643. local p = Instance.new("Part",EffectModel)
  644. p.BrickColor = BrickColor.new(colour)
  645. p.Size = partsize
  646. p.Anchored = true
  647. p.CanCollide = false
  648. p.Material = matr
  649. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  650. if inverse == true then
  651. p.Transparency = 1
  652. else
  653. p.Transparency = 0
  654. end
  655. local m = Instance.new("SpecialMesh",p)
  656. m.MeshType = "Sphere"
  657. m.Scale = meshstart
  658. coroutine.wrap(function()
  659. for i=0,1,factor do
  660. swait()
  661. if inverse == true then
  662. p.Transparency = 1-i
  663. else
  664. p.Transparency = i
  665. end
  666. m.Scale = m.Scale + meshadd
  667. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  668. end
  669. p:Destroy()
  670. end)()
  671. return p
  672. end,
  673.  
  674. }
  675.  
  676. function MagnitudeDmg(par,magni)
  677. for _, c in pairs(workspace:GetDescendants()) do
  678. local hum = c:FindFirstChildOfClass("Humanoid")
  679. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  680. local head = GetDudesTorso(c)
  681. if head ~= nil then
  682. local targ = head.Position - par.Position
  683. local mag = targ.magnitude
  684. if magni >= mag and c ~= Character then
  685. Dmg(c)
  686. end
  687. end
  688. end
  689. end
  690. end
  691.  
  692. function rayCast(Position, Direction, Range, Ignore)
  693. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  694. end
  695. mouse.KeyDown:connect(function(Press)
  696. Press=Press:lower()
  697. if Press=='e' then
  698. if debounce then return end
  699. if equip then
  700. g1:Remove()
  701. light.Enabled = false
  702. pcall(function()
  703. temmy:Remove()
  704. end)
  705. for i,v in pairs(tommygun:GetDescendants()) do
  706. if v.Name == "temmy" then v:Remove()
  707. end
  708. end
  709. light.Enabled = false
  710. particlemiter1.Enabled = false
  711. hum.CameraOffset = Vector3.new(0,0,0)
  712. attacking = false
  713. equip = false
  714. shooting = false
  715. gunallowance = false
  716. ws = 18
  717. else
  718. g1 = Instance.new("BodyGyro", Root)
  719. g1.D = 175
  720. g1.P = 20000
  721. g1.MaxTorque = Vector3.new(0,9000,0)
  722. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  723. attacking = true
  724. debounce = true
  725. equip = true
  726. coroutine.wrap(function()
  727. while equip do
  728. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1)
  729. ws = 10
  730. swait()
  731. if Root.Velocity.y > 1 then
  732. position = "Jump3"
  733. elseif Root.Velocity.y < -1 then
  734. position = "Falling3"
  735. elseif Root.Velocity.Magnitude > 2 and running == false and attacking == true then
  736. position = "Walk3"
  737. elseif Root.Velocity.Magnitude < 2 and running == false and attacking == true then
  738. position = "Idle4"
  739. end
  740. end
  741. end)()
  742. coroutine.wrap(function()
  743. while equip do
  744. swait()
  745. settime = 0.05
  746. sine = sine + change
  747. if position == "Jump3" and attacking and not running then
  748. change = .65
  749. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  750. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  751. elseif position == "Falling3" and attacking and not running then
  752. change = .65
  753. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.4)
  754. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.4)
  755. elseif position == "Walk3" and attacking == true and running == false then
  756. change = .65
  757. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.2)
  758. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.1)
  759. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.1)
  760. elseif position == "Idle4" and attacking == true and running == false then
  761. change = .65
  762. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.1)
  763. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  764. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1)
  765. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  766. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  767. end
  768. end
  769. end)()
  770. SOUND(RightArm,898163129,6,false,2)
  771. for i = 1, 30 do
  772. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.40,-1.65) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(180)),.25)
  773. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1, 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25)
  774. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, .8, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.25)
  775. swait()
  776. end
  777. gunallowance = true
  778. mouse.Button1Down:connect(function()
  779. if gunallowance then
  780. particlemiter1.Enabled = true
  781. temmy = Instance.new("Sound",Head)
  782. temmy.SoundId = "rbxassetid://849351005"
  783. temmy.Volume = 8
  784.  
  785. temmy.Name = "temmy"
  786. shooting = true
  787. end
  788. end)
  789. mouse.Button1Up:connect(function()
  790. if gunallowance then
  791. hum.CameraOffset = Vector3.new(0,0,0)
  792. light.Enabled = false
  793. particlemiter1.Enabled = false
  794. pcall(function()
  795. temmy:Remove()
  796. end)
  797. for i,v in pairs(Head:GetDescendants()) do
  798. if v.Name == "temmy" then v:Remove()
  799. end
  800. end
  801. shooting = false
  802. end
  803. end)
  804. coroutine.wrap(function()
  805. if firsttime2 then return end
  806. firsttime2 = true
  807. while true do
  808. swait(3)
  809. if shooting then
  810. if switch1 then
  811. switch1 = false
  812. switch2 = true
  813. light.Enabled = true
  814. elseif switch2 then
  815. switch1 = true
  816. switch2 = false
  817. light.Enabled = false
  818. end
  819. pcall(function()
  820. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  821. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(23))
  822. end
  823. end)
  824. end
  825. end
  826. end)()
  827. coroutine.wrap(function()
  828. if firsttime then return end
  829. firsttime = true
  830. while true do
  831. if shooting then
  832. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5, .8, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0 - 10 * math.sin(sine)), math.rad(0)), 0.25)
  833. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1 + .4 * math.sin(sine), 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25)
  834. pcall(function()
  835. local ref = Instance.new("Part",Character)
  836. ref.Size = Vector3.new(0,0,0)
  837. ref.Anchored = true
  838. ref.CanCollide = false
  839. ref.Transparency = 1
  840. local part, pos = rayCast(shootbox.Position,((mouse.Hit.p+Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) - shootbox.Position),200,Character)
  841. ref.CFrame = mouse.Hit
  842. MagnitudeDmg(ref,3)
  843. Effects.Block(CFrame.new(pos),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  844. end)
  845. elseif not shooting then
  846. end
  847. swait()
  848. end
  849. end)()
  850. debounce = false
  851. end
  852. end
  853. end)
  854.  
  855. mouse.KeyDown:connect(function(Press)
  856. Press=Press:lower()
  857. if Press=='z' then
  858. print("Sound Switched To 1")
  859. id = 150755805
  860. doomtheme.SoundId = "rbxassetid://"..id
  861. doomtheme:Play()
  862. end
  863. end)
  864.  
  865.  
  866. mouse.KeyDown:connect(function(Press)
  867. Press=Press:lower()
  868. if Press=='x' then
  869. print("Sound Switched To 2 -Classic-")
  870. id = 150755805
  871. doomtheme.SoundId = "rbxassetid://"..id
  872. doomtheme:Play()
  873. end
  874. end)
  875.  
  876.  
  877. mouse.KeyDown:connect(function(Press)
  878. Press=Press:lower()
  879. if Press=='c' then
  880. print("Sound Switched To 3")
  881. id = 150755805
  882. doomtheme.SoundId = "rbxassetid://"..id
  883. doomtheme:Play()
  884. end
  885. end)
  886.  
  887. checks1 = coroutine.wrap(function() -------Checks
  888. while true do
  889. if Root.Velocity.y > 1 then
  890. position = "Jump"
  891. elseif Root.Velocity.y < -1 then
  892. position = "Falling"
  893. elseif Root.Velocity.Magnitude < 2 then
  894. position = "Idle"
  895. elseif Root.Velocity.Magnitude < 20 then
  896. position = "Walking"
  897. elseif Root.Velocity.Magnitude > 20 then
  898. position = "Running"
  899. else
  900. end
  901. wait()
  902. end
  903. end)
  904. checks1()
  905.  
  906. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  907. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  908. end
  909.  
  910. function ray2(StartPos, EndPos, Distance, Ignore)
  911. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  912. return ray(StartPos, DIRECTION, Distance, Ignore)
  913. end
  914.  
  915. OrgnC0 = Neck.C0
  916. local movelimbs = coroutine.wrap(function()
  917. while RunSrv.RenderStepped:wait() do
  918. TrsoLV = Torso.CFrame.lookVector
  919. Dist = nil
  920. Diff = nil
  921. if not MseGuide then
  922. print("Failed to recognize")
  923. else
  924. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  925. Dist = (Head.CFrame.p-Point).magnitude
  926. Diff = Head.CFrame.Y-Point.Y
  927. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  928. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  929. Diff2 = LeftArm.CFrame.Y-Point.Y
  930. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  931. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  932. end
  933. end
  934. end)
  935. movelimbs()
  936. immortal = {}
  937. for i,v in pairs(Character:GetDescendants()) do
  938. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  939. if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
  940. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  941. end
  942. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  943. elseif v:IsA("JointInstance") then
  944. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  945. end
  946. end
  947. for e = 1, #immortal do
  948. if immortal[e] ~= nil then
  949. local STUFF = immortal[e]
  950. local PART = STUFF[1]
  951. local PARENT = STUFF[2]
  952. local MATERIAL = STUFF[3]
  953. local COLOR = STUFF[4]
  954. local TRANSPARENCY = STUFF[5]
  955. if levitate then
  956. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  957. PART.Material = MATERIAL
  958. PART.Color = COLOR
  959. PART.Transparency = TRANSPARENCY
  960. end
  961. PART.AncestryChanged:connect(function()
  962. PART.Parent = PARENT
  963. end)
  964. else
  965. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  966. PART.Material = MATERIAL
  967. PART.Color = COLOR
  968. PART.Transparency = TRANSPARENCY
  969. end
  970. PART.AncestryChanged:connect(function()
  971. PART.Parent = PARENT
  972. end)
  973. end
  974. end
  975. end
  976. function immortality()
  977. for e = 1, #immortal do
  978. if immortal[e] ~= nil then
  979. local STUFF = immortal[e]
  980. local PART = STUFF[1]
  981. local PARENT = STUFF[2]
  982. local MATERIAL = STUFF[3]
  983. local COLOR = STUFF[4]
  984. local TRANSPARENCY = STUFF[5]
  985. if PART.ClassName == "Part" and PART == Root then
  986. PART.Material = MATERIAL
  987. PART.Color = COLOR
  988. PART.Transparency = TRANSPARENCY
  989. end
  990. if PART.Parent ~= PARENT then
  991. hum:Remove()
  992. PART.Parent = PARENT
  993. hum = Instance.new("Humanoid",Character)
  994. end
  995. end
  996. end
  997. end
  998. screenGui = Instance.new("ScreenGui")
  999. screenGui.Parent = script.Parent
  1000.  
  1001. coroutine.wrap(function()
  1002. while true do
  1003. if hum.Health < .1 then
  1004. deadsound = Instance.new("Sound", Torso)
  1005. deadsound.Volume = 50
  1006. deadsound.SoundId = "rbxassetid://1206683683"
  1007. deadsound:Play()
  1008. immortality()
  1009. end
  1010. wait()
  1011. end
  1012. end)()
  1013.  
  1014. local anims = coroutine.wrap(function()
  1015. while true do
  1016. settime = 0.05
  1017. sine = sine + change
  1018. if shooting then
  1019. wait(0.08)
  1020. temmy:Play()
  1021. end
  1022. if position == "Jump" and attacking == false then
  1023. change = 1
  1024. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(-.7,-.001,-1.25) * CFrame.Angles(math.rad(155),math.rad(5),math.rad(135)),.25)
  1025. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1026. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1027. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1028. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1029. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4)
  1030. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  1031. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  1032. elseif position == "Jump2" and attacking == false then
  1033. change = 1
  1034. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3)
  1035. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  1036. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  1037. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  1038. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  1039. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  1040. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3)
  1041. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3)
  1042. elseif position == "Falling" and attacking == false then
  1043. change = 1
  1044. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(-.7,-.001,-1.25) * CFrame.Angles(math.rad(155),math.rad(5),math.rad(135)),.25)
  1045. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1046. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1047. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  1048. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  1049. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2)
  1050. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  1051. elseif position == "Falling2" and attacking == false then
  1052. change = 1
  1053. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3)
  1054. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  1055. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  1056. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  1057. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  1058. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  1059. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3)
  1060. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3)
  1061. elseif position == "Walking" and attacking == false and running == false then
  1062. change = 1.2
  1063. walking = true
  1064. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(-.7,-.001,-1.25) * CFrame.Angles(math.rad(155),math.rad(5),math.rad(135)),.25)
  1065. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,1 + .1 * math.sin(sine/12),-1) * CFrame.Angles(math.rad(200),math.rad(52),math.rad(0)), 0.1)
  1066. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1067. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1068. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.15,.5*math.sin(sine/8)) * CFrame.Angles(math.rad(-35*math.sin(sine/8)),math.rad(0*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3)
  1069. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-10), math.rad(5 * math.cos(sine/7)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.1)
  1070. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.3)
  1071. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.3)
  1072. elseif position == "Idle" and attacking == false and running == false then
  1073. change = .5
  1074. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(-.7,-.001,-1.25) * CFrame.Angles(math.rad(155),math.rad(5),math.rad(135)),.25)
  1075. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.1)
  1076. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,1 + .1 * math.sin(sine/12),-1) * CFrame.Angles(math.rad(200),math.rad(52),math.rad(0)), 0.1)
  1077. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.59 - .05 * math.sin(sine/12), 0.1 -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(-2), math.rad(2), math.rad(8 - 6 * math.sin(sine/12))), .2)
  1078. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1079. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1)
  1080. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  1081. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
  1082. elseif position == "Idle2" and attacking == false and running == false then
  1083. change = .75
  1084. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1)
  1085. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  1086. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1)
  1087. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  1088. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4)
  1089. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 - 3 * math.sin(sine/9)), math.rad(-35 + 5 * math.sin(sine/9))), 0.4)
  1090. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4)
  1091. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4)
  1092. elseif position == "Walking2" and attacking == false and running == false then
  1093. ws = 50
  1094. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3)
  1095. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  1096. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  1097. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3)
  1098. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3)
  1099. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  1100. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3)
  1101. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3)
  1102. elseif position == "Running" and attacking == false then
  1103. change = 1
  1104. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  1105. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3)
  1106. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1107. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3)
  1108. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  1109. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3)
  1110. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  1111. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3)
  1112. end
  1113. swait()
  1114. end
  1115. end)
  1116. warn[[Edit One By GAMEKILLERTOY
  1117. Edit Two By williaminRoblox113]]
  1118.  
  1119. armor = Instance.new("Part")
  1120. armormesh = Instance.new("SpecialMesh")
  1121. armor.Anchored = false
  1122. armor.CanCollide = false
  1123. armor.Size = Vector3.new(1.4, 0.7, 1.3)
  1124. armor.BrickColor = BrickColor.new("Black")
  1125. armor.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1126. armor.Material = Enum.Material.SmoothPlastic
  1127. armor.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1128. armor.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1129. armor.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1130. armor.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1131. armor.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1132. armor.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1133. armor.Parent = Character
  1134. armor.CFrame = CFrame.new(-87.19, 0.42, -26.37) * CFrame.Angles(0, 0, 0)
  1135. armormesh.MeshId = "rbxassetid://0"
  1136. armormesh.MeshType = Enum.MeshType.FileMesh
  1137. armormesh.Parent = armor
  1138. local wlf4 = Instance.new("Weld",armor)
  1139. wlf4.Part0 = armor
  1140. wlf4.Part1 = Torso
  1141. wlf4.C0 = wlf4.C0 * CFrame.Angles(math.rad(0),math.rad(180),math.rad(0))
  1142. wlf4.C1 = CFrame.new(0,0,0)
  1143.  
  1144. anims()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement