Advertisement
Death78

Untitled

Jan 29th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.05 KB | None | 0 0
  1. -----------//Elio Blasio\\-----------
  2. --[[Movelist
  3. E = Equip/Unequip, click to shoot, hold to spray
  4. T = Taunt
  5. ---------]]
  6. --Credits to Shackluster for the refit/anti-breakjoints function, he's a cool guy/great scripter.--
  7. --Ayy i'm not dead yet, take that haters, if i even had any to begin with.--
  8. --Keeping this script small since big ones will cause major lag & exceed script limits--
  9. --Using a FE converter because i'm way too lazy to create remotes for it--
  10. script.Parent = owner.Character
  11. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  12. local function NewFakeEvent()
  13. local Bind = Instance.new("BindableEvent")
  14. local Fake;Fake = {Connections = {},
  15. fakeEvent=true;
  16. Connect=function(self,Func)
  17. Bind.Event:connect(Func)
  18. self.Connections[Bind] = true
  19. return setmetatable({Connected = true},{
  20. __index = function (self,Index)
  21. if Index:lower() == "disconnect" then
  22. return function() Fake.Connections[Bind] = false;self.Connected = false end
  23. end
  24. return Fake[Index]
  25. end;
  26. __tostring = function() return "Connection" end;
  27. })
  28. end}
  29. Fake.connect = Fake.Connect;return Fake;
  30. end
  31. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  32. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  33. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  34. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  35. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  36. local function TriggerEvent(self,Event,...)
  37. local Trigger = Mouse[Event]
  38. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  39. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  40. end
  41. end
  42. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  43. Event.OnServerEvent:Connect(function(FiredBy,Input)
  44. if FiredBy.Name ~= owner.Name then return end
  45. if Input.MouseEvent then
  46. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  47. else
  48. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  49. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  50. for _,Action in pairs(ContextActionService.Actions) do
  51. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  52. end
  53. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  54. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  55. end
  56. end)
  57. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  58. Event.Parent = NLS([[
  59. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  60. local Input = function(Input,gameProcessedEvent)
  61. if gameProcessedEvent then return end
  62. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  63. end
  64. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  65. local Hit,Target
  66. while wait(1/30) do
  67. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  68. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  69. end
  70. end
  71. ]],owner.Character)
  72. end
  73. RealGame = game;game = setmetatable({},{
  74. __index = function (self,Index)
  75. local Sandbox = function (Thing)
  76. if Thing:IsA("Player") then
  77. local RealPlayer = Thing
  78. return setmetatable({},{
  79. __index = function (self,Index)
  80. local Type = type(RealPlayer[Index])
  81. if Type == "function" then
  82. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  83. return function (self)return InternalData["Mouse"] end
  84. end
  85. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  86. end
  87. return RealPlayer[Index]
  88. end;
  89. __tostring = function(self) return RealPlayer.Name end
  90. })
  91. end
  92. end
  93. if RealGame[Index] then
  94. local Type = type(RealGame[Index])
  95. if Type == "function" then
  96. if Index:lower() == "getservice" or Index:lower() == "service" then
  97. return function (self,Service)
  98. local FakeServices = {
  99. ["players"] = function()
  100. return setmetatable({},{
  101. __index = function (self2,Index2)
  102. local RealService = RealGame:GetService(Service)
  103. local Type2 = type(Index2)
  104. if Type2 == "function" then
  105. return function (self,...) return RealService[Index2](RealService,...)end
  106. else
  107. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  108. return RealService[Index2]
  109. end
  110. end;
  111. __tostring = function(self) return RealGame:GetService(Service).Name end
  112. })
  113. end;
  114. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  115. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  116. ["runservice"] = function()
  117. return setmetatable({},{
  118. __index = function(self2,Index2)
  119. local RealService = RealGame:GetService(Service)
  120. local Type2 = type(Index2)
  121. if Type2 == "function" then
  122. return function (self,...) return RealService[Index2](RealService,...) end
  123. else
  124. local RunServices = {
  125. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  126. ["renderstepped"] = function() return RealService["Stepped"] end
  127. }
  128. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  129. return RealService[Index2]
  130. end
  131. end
  132. })
  133. end
  134. }
  135. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  136. return RealGame:GetService(Service)
  137. end
  138. end
  139. return function (self,...) return RealGame[Index](RealGame,...) end
  140. else
  141. if game:GetService(Index) then return game:GetService(Index) end
  142. return RealGame[Index]
  143. end
  144. end
  145. return nil
  146. end
  147. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  148.  
  149. Player=game.Players.LocalPlayer
  150. Character=Player.Character
  151. Character.Humanoid.Name = "noneofurbusiness"
  152. hum = Character.noneofurbusiness
  153. LeftArm=Character["Left Arm"]
  154. LeftLeg=Character["Left Leg"]
  155. RightArm=Character["Right Arm"]
  156. RightLeg=Character["Right Leg"]
  157. Root=Character["HumanoidRootPart"]
  158. Head=Character["Head"]
  159. Torso=Character["Torso"]
  160. Neck=Torso["Neck"]
  161. mouse = Player:GetMouse()
  162. walking = false
  163. jumping = false
  164. attacking = false
  165. firsttime = false
  166. tauntdebounce = false
  167. position = nil
  168. MseGuide = true
  169. running = false
  170. settime = 0
  171. sine = 0
  172. t = 0
  173. ws = 18
  174. change = 1
  175. combo1 = true
  176. equip = false
  177. dgs = 75
  178. combo2 = false
  179. switch1 = true
  180. switch2 = false
  181. firsttime2 = false
  182. combo3 = false
  183. gunallowance = false
  184. shooting = false
  185. RunSrv = game:GetService("RunService")
  186. RenderStepped = game:GetService("RunService").RenderStepped
  187. removeuseless = game:GetService("Debris")
  188.  
  189. screenGui = Instance.new("ScreenGui")
  190. screenGui.Parent = script.Parent
  191.  
  192. local HEADLERP = Instance.new("ManualWeld")
  193. HEADLERP.Parent = Head
  194. HEADLERP.Part0 = Head
  195. HEADLERP.Part1 = Head
  196. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  197.  
  198. local TORSOLERP = Instance.new("ManualWeld")
  199. TORSOLERP.Parent = Root
  200. TORSOLERP.Part0 = Torso
  201. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  202.  
  203. local ROOTLERP = Instance.new("ManualWeld")
  204. ROOTLERP.Parent = Root
  205. ROOTLERP.Part0 = Root
  206. ROOTLERP.Part1 = Torso
  207. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  208.  
  209. local RIGHTARMLERP = Instance.new("ManualWeld")
  210. RIGHTARMLERP.Parent = RightArm
  211. RIGHTARMLERP.Part0 = RightArm
  212. RIGHTARMLERP.Part1 = Torso
  213. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  214.  
  215. local LEFTARMLERP = Instance.new("ManualWeld")
  216. LEFTARMLERP.Parent = LeftArm
  217. LEFTARMLERP.Part0 = LeftArm
  218. LEFTARMLERP.Part1 = Torso
  219. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  220.  
  221. local RIGHTLEGLERP = Instance.new("ManualWeld")
  222. RIGHTLEGLERP.Parent = RightLeg
  223. RIGHTLEGLERP.Part0 = RightLeg
  224. RIGHTLEGLERP.Part1 = Torso
  225. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  226.  
  227. local LEFTLEGLERP = Instance.new("ManualWeld")
  228. LEFTLEGLERP.Parent = LeftLeg
  229. LEFTLEGLERP.Part0 = LeftLeg
  230. LEFTLEGLERP.Part1 = Torso
  231. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  232.  
  233. local function weldBetween(a, b)
  234. local weld = Instance.new("ManualWeld", a)
  235. weld.Part0 = a
  236. weld.Part1 = b
  237. weld.C0 = a.CFrame:inverse() * b.CFrame
  238. return weld
  239. end
  240.  
  241. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  242. A = Instance.new("Attachment", PARENT)
  243. A.Position = POSITION1
  244. A.Name = "A"
  245. B = Instance.new("Attachment", PARENT)
  246. B.Position = POSITION2
  247. B.Name = "B"
  248. tr1 = Instance.new("Trail", PARENT)
  249. tr1.Attachment0 = A
  250. tr1.Attachment1 = B
  251. tr1.Enabled = true
  252. tr1.Lifetime = LIFETIME
  253. tr1.TextureMode = "Static"
  254. tr1.LightInfluence = 0
  255. tr1.Color = COLOR
  256. tr1.Transparency = NumberSequence.new(0, 1)
  257. end
  258.  
  259. shirt = Instance.new("Shirt", Character)
  260. shirt.Name = "Shirt"
  261. pants = Instance.new("Pants", Character)
  262. pants.Name = "Pants"
  263. Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1123249914"
  264. Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1839310233"
  265.  
  266. skull = Instance.new("Part",Character)
  267. skull.Size = Vector3.new(2,2,2)
  268. skull.CFrame = Head.CFrame
  269. skull.CanCollide = false
  270. skullweld = Instance.new("Weld",skull)
  271. skullweld.Part0 = skull
  272. skullweld.Part1 = Head
  273. skullweld.C0 = skull.CFrame:inverse() * Head.CFrame
  274. mskull = Instance.new("SpecialMesh", skull)
  275. mskull.MeshType = "FileMesh"
  276. mskull.Scale = Vector3.new(1.12, 1.12, 1.12)
  277. mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=181343290','http://www.roblox.com/asset/?id=181343313'
  278. fedora = Instance.new("Part",Character)
  279. fedora.Size = Vector3.new(2,2,2)
  280. fedora.CFrame = Head.CFrame
  281. fedora.CanCollide = false
  282. fedoraweld = Instance.new("Weld",fedora)
  283. fedoraweld.Part0 = fedora
  284. fedoraweld.Part1 = Head
  285. fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.8,0)
  286. mfedora = Instance.new("SpecialMesh", fedora)
  287. mfedora.MeshType = "FileMesh"
  288. mfedora.Scale = Vector3.new(1.1, 1.1, 1.1)
  289. mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  290. tommygun = Instance.new("Part",Character)
  291. tommygun.Size = Vector3.new(2,2,2)
  292. tommygun.CFrame = RightArm.CFrame
  293. tommygun.CanCollide = false
  294. tommygunweld = Instance.new("Weld",tommygun)
  295. tommygunweld.Part0 = tommygun
  296. tommygunweld.Part1 = RightArm
  297. tommygunweld.C0 = tommygun.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0)
  298. mtommygun = Instance.new("SpecialMesh", tommygun)
  299. mtommygun.MeshType = "FileMesh"
  300. mtommygun.Scale = Vector3.new(1, 1, 1)
  301. mtommygun.MeshId,mtommygun.TextureId = 'http://www.roblox.com/asset/?id=116679805','http://www.roblox.com/asset/?id=116679995'
  302. shootbox = Instance.new("Part",Character)
  303. shootbox.Size = Vector3.new(.2,.2,.2)
  304. shootbox.CanCollide = false
  305. shootbox.Transparency = 1
  306. shootbox.CFrame = tommygun.CFrame
  307. shootboxweld = weldBetween(shootbox,tommygun)
  308. shootboxweld.C0 = CFrame.new(0,-.05,2.62)
  309. light = Instance.new("PointLight", shootbox)
  310. light.Color = BrickColor.new("Bright yellow").Color
  311. light.Range = 5
  312. light.Brightness = 11
  313. light.Enabled = false
  314. particlemiter1 = Instance.new("ParticleEmitter", shootbox)
  315. particlemiter1.Enabled = false
  316. particlemiter1.Texture = "rbxassetid://461242617"
  317. particlemiter1.Lifetime = NumberRange.new(.1)
  318. particlemiter1.Size = NumberSequence.new(1,0)
  319. particlemiter1.Rate = 20
  320. particlemiter1.RotSpeed = NumberRange.new(0)
  321. particlemiter1.Speed = NumberRange.new(0)
  322. tommygunammo = Instance.new("Part",Character)
  323. tommygunammo.Size = Vector3.new(2,2,2)
  324. tommygunammo.CFrame = tommygun.CFrame
  325. tommygunammo.CanCollide = false
  326. tommygunammoweld = Instance.new("Weld",tommygunammo)
  327. tommygunammoweld.Part0 = tommygunammo
  328. tommygunammoweld.Part1 = tommygun
  329. tommygunammoweld.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(0,.4,.25) * CFrame.Angles(math.rad(0),math.rad(0),0)
  330. mtommygunammo = Instance.new("SpecialMesh", tommygunammo)
  331. mtommygunammo.MeshType = "FileMesh"
  332. mtommygunammo.Scale = Vector3.new(1, 1, 1)
  333. mtommygunammo.MeshId,mtommygunammo.TextureId = 'http://www.roblox.com/asset/?id=116740155','http://www.roblox.com/asset/?id=116679995'
  334. mask = Instance.new("Part",Character)
  335. mask.Size = Vector3.new(2,2,2)
  336. mask.CFrame = Head.CFrame
  337. mask.CanCollide = false
  338. maskweld = Instance.new("Weld",mask)
  339. maskweld.Part0 = mask
  340. maskweld.Part1 = Head
  341. maskweld.C0 = mask.CFrame:inverse() * Head.CFrame * CFrame.new(-.2,0,.62) * CFrame.Angles(math.rad(0),math.rad(10),math.rad(0))
  342. mmask = Instance.new("SpecialMesh", mask)
  343. mmask.MeshType = "FileMesh"
  344. mmask.Scale = Vector3.new(1.25, 1.25, 1.25)
  345. mmask.MeshId,mmask.TextureId = 'http://www.roblox.com/asset/?id=12470186','http://www.roblox.com/asset/?id=12470201'
  346.  
  347.  
  348.  
  349. coroutine.wrap(function()
  350. while wait() do
  351. hum.WalkSpeed = ws
  352. LeftArm.BrickColor = BrickColor.new("Really black")
  353. RightArm.BrickColor = BrickColor.new("Really black")
  354. Head.BrickColor = BrickColor.new("Really black")
  355. end
  356. end)()
  357. godmode = coroutine.wrap(function()
  358. for i,v in pairs(Character:GetChildren()) do
  359. if v:IsA("BasePart") and v ~= Root then
  360. v.Anchored = false
  361. end
  362. end
  363. while true do
  364. hum.MaxHealth = 250
  365. wait(20)
  366. hum.Health = 250
  367. wait()
  368. end
  369. end)
  370. godmode()
  371.  
  372. coroutine.wrap(function()
  373. for i,v in pairs(Character:GetChildren()) do
  374. if v.Name == "Animate" then v:Remove()
  375. end
  376. end
  377. end)()
  378.  
  379. function damagealll(Radius,Position)
  380. local Returning = {}
  381. for _,v in pairs(workspace:GetChildren()) do
  382. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  383. if v:FindFirstChild("Torso") then
  384. local Mag = (v.Torso.Position - Position).magnitude
  385. if Mag < Radius then
  386. table.insert(Returning,v)
  387. end
  388. elseif v:FindFirstChild("UpperTorso") then
  389. local Mag = (v.UpperTorso.Position - Position).magnitude
  390. if Mag < Radius then
  391. table.insert(Returning,v)
  392. end
  393. end
  394. end
  395. end
  396. return Returning
  397. end
  398.  
  399. ArtificialHB = Instance.new("BindableEvent", script)
  400. ArtificialHB.Name = "Heartbeat"
  401. script:WaitForChild("Heartbeat")
  402.  
  403. frame = 1 / 60
  404. tf = 0
  405. allowframeloss = false
  406. tossremainder = false
  407.  
  408.  
  409. lastframe = tick()
  410. script.Heartbeat:Fire()
  411.  
  412.  
  413. game:GetService("RunService").Heartbeat:connect(function(s, p)
  414. tf = tf + s
  415. if tf >= frame then
  416. if allowframeloss then
  417. script.Heartbeat:Fire()
  418. lastframe = tick()
  419. else
  420. for i = 1, math.floor(tf / frame) do
  421. script.Heartbeat:Fire()
  422. end
  423. lastframe = tick()
  424. end
  425. if tossremainder then
  426. tf = 0
  427. else
  428. tf = tf - frame * math.floor(tf / frame)
  429. end
  430. end
  431. end)
  432.  
  433. function swait(num)
  434. if num == 0 or num == nil then
  435. game:service("RunService").Stepped:wait(0)
  436. else
  437. for i = 0, num do
  438. game:service("RunService").Stepped:wait(0)
  439. end
  440. end
  441. end
  442.  
  443. doomtheme = Instance.new("Sound", Torso)
  444. doomtheme.Volume = 1
  445. doomtheme.Name = "doomtheme"
  446. doomtheme.Looped = true
  447. doomtheme.SoundId = "rbxassetid://318812395"
  448. doomtheme:Play()
  449.  
  450. Torso.ChildRemoved:connect(function(removed)
  451. if removed.Name == "doomtheme" then
  452.  
  453. doomtheme = Instance.new("Sound", Torso)
  454. doomtheme.Volume = 1
  455. doomtheme.Name = "doomtheme"
  456. doomtheme.Looped = true
  457. doomtheme.SoundId = "rbxassetid://318812395"
  458. doomtheme:Play()
  459. end
  460. end)
  461.  
  462. for _,n in pairs(Character:GetChildren()) do
  463. if n:IsA("Accessory") then n:Remove() end
  464. end
  465. for _,x in pairs(Character:GetChildren()) do
  466. if x:IsA("Decal") then x:Remove() end
  467. end
  468.  
  469. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  470. so = Instance.new("Sound")
  471. so.Parent = PARENT
  472. so.SoundId = "rbxassetid://"..ID
  473. so.Volume = VOL
  474. so.Looped = LOOP
  475. so:Play()
  476. removeuseless:AddItem(so,REMOVE)
  477. end
  478.  
  479. mouse.KeyDown:connect(function(Press)
  480. Press=Press:lower()
  481. if Press=='t' then
  482. if tauntdebounce then return end
  483. tauntdebounce = true
  484. local b1 = Instance.new("BillboardGui",Head)
  485. b1.Size = UDim2.new(0,4,0,1.6)
  486. b1.StudsOffset = Vector3.new(0,0,0)
  487. b1.Name = "laff"
  488. b1.AlwaysOnTop = true
  489. b1.StudsOffset = Vector3.new(0,2,0)
  490. b1.Adornee = Head
  491. removeuseless:AddItem(b1,3)
  492. local b2 = Instance.new("TextLabel",b1)
  493. b2.BackgroundTransparency = 1
  494. b2.Text = "HeHeHeHeHeHeHe..."
  495. b2.Font = "Garamond"
  496. b2.TextSize = 30
  497. b2.Name = "lafftext"
  498. b2.TextStrokeTransparency = 0
  499. b2.TextColor3 = BrickColor.new("Grey").Color
  500. b2.TextStrokeColor3 = Color3.new(0,0,0)
  501. b2.Size = UDim2.new(1,0,.5,0)
  502. laff = Instance.new("Sound",Head)
  503. laff.SoundId = "rbxassetid://2126502539"
  504. laff.Volume = 5
  505. laff:Play()
  506. wait(5)
  507. laff:Remove()
  508. tauntdebounce = false
  509. end
  510. end)
  511.  
  512. mouse.KeyDown:connect(function(Press)
  513. Press=Press:lower()
  514. if Press=='e' then
  515. if debounce then return end
  516. if equip then
  517. g1:Remove()
  518. light.Enabled = false
  519. pcall(function()
  520. temmy:Remove()
  521. end)
  522. for i,v in pairs(tommygun:GetDescendants()) do
  523. if v.Name == "temmy" then v:Remove()
  524. end
  525. end
  526. light.Enabled = false
  527. particlemiter1.Enabled = false
  528. hum.CameraOffset = Vector3.new(0,0,0)
  529. attacking = false
  530. equip = false
  531. shooting = false
  532. gunallowance = false
  533. ws = 18
  534. else
  535. g1 = Instance.new("BodyGyro", Root)
  536. g1.D = 175
  537. g1.P = 20000
  538. g1.MaxTorque = Vector3.new(0,9000,0)
  539. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  540. attacking = true
  541. debounce = true
  542. equip = true
  543. coroutine.wrap(function()
  544. while equip do
  545. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1)
  546. ws = 10
  547. swait()
  548. if Root.Velocity.y > 1 then
  549. position = "Jump3"
  550. elseif Root.Velocity.y < -1 then
  551. position = "Falling3"
  552. elseif Root.Velocity.Magnitude > 2 and running == false and attacking == true then
  553. position = "Walk3"
  554. elseif Root.Velocity.Magnitude < 2 and running == false and attacking == true then
  555. position = "Idle4"
  556. end
  557. end
  558. end)()
  559. coroutine.wrap(function()
  560. while equip do
  561. swait()
  562. settime = 0.05
  563. sine = sine + change
  564. if position == "Jump3" and attacking and not running then
  565. change = .65
  566. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  567. 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)
  568. elseif position == "Falling3" and attacking and not running then
  569. change = .65
  570. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.4)
  571. 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)
  572. elseif position == "Walk3" and attacking == true and running == false then
  573. change = .65
  574. 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)
  575. 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)
  576. 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)
  577. elseif position == "Idle4" and attacking == true and running == false then
  578. change = .65
  579. 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)
  580. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  581. 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)
  582. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  583. 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)
  584. end
  585. end
  586. end)()
  587. SOUND(RightArm,898163129,6,false,2)
  588. for i = 1, 30 do
  589. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.68,1.25) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-12)),.25)
  590. 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)
  591. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.25)
  592. swait()
  593. end
  594. gunallowance = true
  595. mouse.Button1Down:connect(function()
  596. if gunallowance then
  597. particlemiter1.Enabled = true
  598. temmy = Instance.new("Sound",tommygun)
  599. temmy.SoundId = "rbxassetid://2204318084"
  600. temmy.Volume = 6
  601. temmy.Name = "temmy"
  602. temmy.Looped = true
  603. temmy:Play()
  604. shooting = true
  605. end
  606. end)
  607. mouse.Button1Up:connect(function()
  608. if gunallowance then
  609. hum.CameraOffset = Vector3.new(0,0,0)
  610. light.Enabled = false
  611. particlemiter1.Enabled = false
  612. pcall(function()
  613. temmy:Remove()
  614. end)
  615. for i,v in pairs(tommygun:GetDescendants()) do
  616. if v.Name == "temmy" then v:Remove()
  617. end
  618. end
  619. shooting = false
  620. end
  621. end)
  622. coroutine.wrap(function()
  623. if firsttime2 then return end
  624. firsttime2 = true
  625. while true do
  626. swait(3)
  627. if shooting then
  628. if switch1 then
  629. switch1 = false
  630. switch2 = true
  631. light.Enabled = true
  632. elseif switch2 then
  633. switch1 = true
  634. switch2 = false
  635. light.Enabled = false
  636. end
  637. pcall(function()
  638. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  639. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(3,7))
  640. end
  641. end)
  642. end
  643. end
  644. end)()
  645. coroutine.wrap(function()
  646. if firsttime then return end
  647. firsttime = true
  648. while true do
  649. if shooting then
  650. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0 - 10 * math.sin(sine)), math.rad(0)), 0.25)
  651. 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)
  652. pcall(function()
  653. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  654. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(1)
  655. end
  656. end)
  657. elseif not shooting then
  658. end
  659. swait()
  660. end
  661. end)()
  662. debounce = false
  663. end
  664. end
  665. end)
  666.  
  667. mouse.KeyDown:connect(function(Press)
  668. Press=Press:lower()
  669. if Press=='z' then
  670. print("Music switched to 1")
  671. id = 2199374985
  672. doomtheme.SoundId = "rbxassetid://"..id
  673. doomtheme:Play()
  674. end
  675. end)
  676.  
  677. mouse.KeyDown:connect(function(Press)
  678. Press=Press:lower()
  679. if Press=='v' then
  680. print("Music switched to 4")
  681. id = 2111948183
  682. doomtheme.SoundId = "rbxassetid://"..id
  683. doomtheme:Play()
  684. end
  685. end)
  686.  
  687. mouse.KeyDown:connect(function(Press)
  688. Press=Press:lower()
  689. if Press=='x' then
  690. print("Music switched to 2")
  691. id = 318812395
  692. doomtheme.SoundId = "rbxassetid://"..id
  693. doomtheme:Play()
  694. end
  695. end)
  696.  
  697. mouse.KeyDown:connect(function(Press)
  698. Press=Press:lower()
  699. if Press=='c' then
  700. print("Music switched to 3")
  701. id = 180337897
  702. doomtheme.SoundId = "rbxassetid://"..id
  703. doomtheme:Play()
  704. end
  705. end)
  706.  
  707. mouse.KeyDown:connect(function(Press)
  708. Press=Press:lower()
  709. if Press=='b' then
  710. print("Music switched to 5")
  711. id = 649148458
  712. doomtheme.SoundId = "rbxassetid://"..id
  713. doomtheme:Play()
  714. end
  715. end)
  716.  
  717.  
  718. checks1 = coroutine.wrap(function() -------Checks
  719. while true do
  720. if Root.Velocity.y > 1 then
  721. position = "Jump"
  722. elseif Root.Velocity.y < -1 then
  723. position = "Falling"
  724. elseif Root.Velocity.Magnitude < 2 then
  725. position = "Idle"
  726. elseif Root.Velocity.Magnitude < 20 then
  727. position = "Walking"
  728. elseif Root.Velocity.Magnitude > 20 then
  729. position = "Running"
  730. else
  731. end
  732. wait()
  733. end
  734. end)
  735. checks1()
  736.  
  737. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  738. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  739. end
  740.  
  741. function ray2(StartPos, EndPos, Distance, Ignore)
  742. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  743. return ray(StartPos, DIRECTION, Distance, Ignore)
  744. end
  745.  
  746. OrgnC0 = Neck.C0
  747. local movelimbs = coroutine.wrap(function()
  748. while RunSrv.RenderStepped:wait() do
  749. TrsoLV = Torso.CFrame.lookVector
  750. Dist = nil
  751. Diff = nil
  752. if not MseGuide then
  753. print("Failed to recognize")
  754. else
  755. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  756. Dist = (Head.CFrame.p-Point).magnitude
  757. Diff = Head.CFrame.Y-Point.Y
  758. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  759. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  760. Diff2 = LeftArm.CFrame.Y-Point.Y
  761. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  762. 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)
  763. end
  764. end
  765. end)
  766. movelimbs()
  767. immortal = {}
  768. for i,v in pairs(Character:GetDescendants()) do
  769. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  770. 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
  771. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  772. end
  773. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  774. elseif v:IsA("JointInstance") then
  775. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  776. end
  777. end
  778. for e = 1, #immortal do
  779. if immortal[e] ~= nil then
  780. local STUFF = immortal[e]
  781. local PART = STUFF[1]
  782. local PARENT = STUFF[2]
  783. local MATERIAL = STUFF[3]
  784. local COLOR = STUFF[4]
  785. local TRANSPARENCY = STUFF[5]
  786. if levitate then
  787. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  788. PART.Material = MATERIAL
  789. PART.Color = COLOR
  790. PART.Transparency = TRANSPARENCY
  791. end
  792. PART.AncestryChanged:connect(function()
  793. PART.Parent = PARENT
  794. end)
  795. else
  796. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  797. PART.Material = MATERIAL
  798. PART.Color = COLOR
  799. PART.Transparency = TRANSPARENCY
  800. end
  801. PART.AncestryChanged:connect(function()
  802. PART.Parent = PARENT
  803. end)
  804. end
  805. end
  806. end
  807. function immortality()
  808. for e = 1, #immortal do
  809. if immortal[e] ~= nil then
  810. local STUFF = immortal[e]
  811. local PART = STUFF[1]
  812. local PARENT = STUFF[2]
  813. local MATERIAL = STUFF[3]
  814. local COLOR = STUFF[4]
  815. local TRANSPARENCY = STUFF[5]
  816. if PART.ClassName == "Part" and PART == Root then
  817. PART.Material = MATERIAL
  818. PART.Color = COLOR
  819. PART.Transparency = TRANSPARENCY
  820. end
  821. if PART.Parent ~= PARENT then
  822. hum:Remove()
  823. PART.Parent = PARENT
  824. hum = Instance.new("Humanoid",Character)
  825. hum.Name = "noneofurbusiness"
  826. end
  827. end
  828. end
  829. end
  830. coroutine.wrap(function()
  831. while true do
  832. if hum.Health < .1 then
  833. deadsound = Instance.new("Sound", Torso)
  834. deadsound.Volume = 6
  835. deadsound.SoundId = "rbxassetid://1411352723"
  836. deadsound:Play()
  837. immortality()
  838. end
  839. wait()
  840. end
  841. end)()
  842.  
  843. local anims = coroutine.wrap(function()
  844. while true do
  845. settime = 0.05
  846. sine = sine + change
  847. if position == "Jump" and attacking == false then
  848. change = 1
  849. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  850. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  851. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  852. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  853. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  854. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4)
  855. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  856. 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)
  857. elseif position == "Jump2" and attacking == false then
  858. change = 1
  859. 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)
  860. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  861. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  862. 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)
  863. 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)
  864. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  865. 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)
  866. 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)
  867. elseif position == "Falling" and attacking == false then
  868. change = 1
  869. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  870. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  871. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  872. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  873. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  874. 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)
  875. 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)
  876. elseif position == "Falling2" and attacking == false then
  877. change = 1
  878. 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)
  879. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  880. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  881. 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)
  882. 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)
  883. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  884. 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)
  885. 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)
  886. elseif position == "Walking" and attacking == false and running == false then
  887. change = 1.2
  888. walking = true
  889. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  890. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(10)), 0.1)
  891. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  892. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  893. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.35,.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)
  894. 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)
  895. 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)
  896. 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)
  897. elseif position == "Idle" and attacking == false and running == false then
  898. change = .5
  899. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  900. 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)
  901. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .1 * math.sin(sine/12),1 + .1 * math.sin(sine/12),0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(8 + 5 * math.sin(sine/12))), 0.1)
  902. 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)
  903. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  904. 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)
  905. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  906. 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)
  907. elseif position == "Idle2" and attacking == false and running == false then
  908. change = .75
  909. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1)
  910. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  911. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1)
  912. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  913. 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)
  914. 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)
  915. 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)
  916. 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)
  917. elseif position == "Walking2" and attacking == false and running == false then
  918. ws = 50
  919. 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)
  920. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  921. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  922. 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)
  923. 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)
  924. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  925. 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)
  926. 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)
  927. elseif position == "Running" and attacking == false then
  928. change = 1
  929. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  930. 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)
  931. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  932. 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)
  933. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  934. 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)
  935. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  936. 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)
  937. end
  938. swait()
  939. end
  940. end)
  941. anims()
  942. warn("Risen from hell, ready to prove his reputation. Made by Supr14")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement