Advertisement
DrakrMakr

Elio Blasio

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