1nubloku

mafi4

Sep 7th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.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. skull = Instance.new("Part",Character)
  263. skull.Size = Vector3.new(2,2,2)
  264. skull.CFrame = Head.CFrame
  265. skull.CanCollide = false
  266. skullweld = Instance.new("Weld",skull)
  267. skullweld.Part0 = skull
  268. skullweld.Part1 = Head
  269. skullweld.C0 = skull.CFrame:inverse() * Head.CFrame
  270. mskull = Instance.new("SpecialMesh", skull)
  271. mskull.MeshType = "FileMesh"
  272. mskull.Scale = Vector3.new(1.12, 1.12, 1.12)
  273. mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=0','http://www.roblox.com/asset/?id=0'
  274. fedora = Instance.new("Part",Character)
  275. fedora.Size = Vector3.new(2,2,2)
  276. fedora.CFrame = Head.CFrame
  277. fedora.CanCollide = false
  278. fedoraweld = Instance.new("Weld",fedora)
  279. fedoraweld.Part0 = fedora
  280. fedoraweld.Part1 = Head
  281. fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.8,0)
  282. mfedora = Instance.new("SpecialMesh", fedora)
  283. mfedora.MeshType = "FileMesh"
  284. mfedora.Scale = Vector3.new(1.1, 1.1, 1.1)
  285. mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=0','http://www.roblox.com/asset/?id=0'
  286. tommygun = Instance.new("Part",Character)
  287. tommygun.Size = Vector3.new(2,2,2)
  288. tommygun.CFrame = RightArm.CFrame
  289. tommygun.CanCollide = false
  290. tommygunweld = Instance.new("Weld",tommygun)
  291. tommygunweld.Part0 = tommygun
  292. tommygunweld.Part1 = RightArm
  293. tommygunweld.C0 = tommygun.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0)
  294. mtommygun = Instance.new("SpecialMesh", tommygun)
  295. mtommygun.MeshType = "FileMesh"
  296. mtommygun.Scale = Vector3.new(1, 1, 1)
  297. mtommygun.MeshId,mtommygun.TextureId = 'http://www.roblox.com/asset/?id=181346014','http://www.roblox.com/asset/?id=181346066'
  298. shootbox = Instance.new("Part",Character)
  299. shootbox.Size = Vector3.new(.2,.2,.2)
  300. shootbox.CanCollide = false
  301. shootbox.Transparency = 1
  302. shootbox.CFrame = tommygun.CFrame
  303. shootboxweld = weldBetween(shootbox,tommygun)
  304. shootboxweld.C0 = CFrame.new(0,-.05,2.62)
  305. light = Instance.new("PointLight", shootbox)
  306. light.Color = BrickColor.new("Bright yellow").Color
  307. light.Range = 5
  308. light.Brightness = 11
  309. light.Enabled = false
  310. particlemiter1 = Instance.new("ParticleEmitter", shootbox)
  311. particlemiter1.Enabled = false
  312. particlemiter1.Texture = "rbxassetid://461242617"
  313. particlemiter1.Lifetime = NumberRange.new(.1)
  314. particlemiter1.Size = NumberSequence.new(1,0)
  315. particlemiter1.Rate = 20
  316. particlemiter1.RotSpeed = NumberRange.new(0)
  317. particlemiter1.Speed = NumberRange.new(0)
  318. tommygunammo = Instance.new("Part",Character)
  319. tommygunammo.Size = Vector3.new(2,2,2)
  320. tommygunammo.CFrame = tommygun.CFrame
  321. tommygunammo.CanCollide = false
  322. tommygunammoweld = Instance.new("Weld",tommygunammo)
  323. tommygunammoweld.Part0 = tommygunammo
  324. tommygunammoweld.Part1 = tommygun
  325. tommygunammoweld.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(0,.4,.25) * CFrame.Angles(math.rad(0),math.rad(0),0)
  326. mtommygunammo = Instance.new("SpecialMesh", tommygunammo)
  327. mtommygunammo.MeshType = "FileMesh"
  328. mtommygunammo.Scale = Vector3.new(1, 1, 1)
  329. mtommygunammo.MeshId,mtommygunammo.TextureId = 'http://www.roblox.com/asset/?id=0','http://www.roblox.com/asset/?id=0'
  330. mask = Instance.new("Part",Character)
  331. mask.Size = Vector3.new(2,2,2)
  332. mask.CFrame = Head.CFrame
  333. mask.CanCollide = false
  334. maskweld = Instance.new("Weld",mask)
  335. maskweld.Part0 = mask
  336. maskweld.Part1 = Head
  337. maskweld.C0 = mask.CFrame:inverse() * Head.CFrame * CFrame.new(-.2,0,.62) * CFrame.Angles(math.rad(0),math.rad(10),math.rad(0))
  338. mmask = Instance.new("SpecialMesh", mask)
  339. mmask.MeshType = "FileMesh"
  340. mmask.Scale = Vector3.new(1.25, 1.25, 1.25)
  341. mmask.MeshId,mmask.TextureId = 'http://www.roblox.com/asset/?id=0','http://www.roblox.com/asset/?id=0'
  342.  
  343.  
  344.  
  345. coroutine.wrap(function()
  346. while wait() do
  347. hum.WalkSpeed = ws
  348. end
  349. end)()
  350. godmode = coroutine.wrap(function()
  351. for i,v in pairs(Character:GetChildren()) do
  352. if v:IsA("BasePart") and v ~= Root then
  353. v.Anchored = false
  354. end
  355. end
  356. while true do
  357. hum.MaxHealth = 250
  358. wait(20)
  359. hum.Health = 250
  360. wait()
  361. end
  362. end)
  363. godmode()
  364.  
  365. coroutine.wrap(function()
  366. for i,v in pairs(Character:GetChildren()) do
  367. if v.Name == "Animate" then v:Remove()
  368. end
  369. end
  370. end)()
  371.  
  372. function damagealll(Radius,Position)
  373. local Returning = {}
  374. for _,v in pairs(workspace:GetChildren()) do
  375. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  376. if v:FindFirstChild("Torso") then
  377. local Mag = (v.Torso.Position - Position).magnitude
  378. if Mag < Radius then
  379. table.insert(Returning,v)
  380. end
  381. elseif v:FindFirstChild("UpperTorso") then
  382. local Mag = (v.UpperTorso.Position - Position).magnitude
  383. if Mag < Radius then
  384. table.insert(Returning,v)
  385. end
  386. end
  387. end
  388. end
  389. return Returning
  390. end
  391.  
  392. ArtificialHB = Instance.new("BindableEvent", script)
  393. ArtificialHB.Name = "Heartbeat"
  394. script:WaitForChild("Heartbeat")
  395.  
  396. frame = 1 / 60
  397. tf = 0
  398. allowframeloss = false
  399. tossremainder = false
  400.  
  401.  
  402. lastframe = tick()
  403. script.Heartbeat:Fire()
  404.  
  405.  
  406. game:GetService("RunService").Heartbeat:connect(function(s, p)
  407. tf = tf + s
  408. if tf >= frame then
  409. if allowframeloss then
  410. script.Heartbeat:Fire()
  411. lastframe = tick()
  412. else
  413. for i = 1, math.floor(tf / frame) do
  414. script.Heartbeat:Fire()
  415. end
  416. lastframe = tick()
  417. end
  418. if tossremainder then
  419. tf = 0
  420. else
  421. tf = tf - frame * math.floor(tf / frame)
  422. end
  423. end
  424. end)
  425.  
  426. function swait(num)
  427. if num == 0 or num == nil then
  428. game:service("RunService").Stepped:wait(0)
  429. else
  430. for i = 0, num do
  431. game:service("RunService").Stepped:wait(0)
  432. end
  433. end
  434. end
  435.  
  436. doomtheme = Instance.new("Sound", Torso)
  437. doomtheme.Volume = 1
  438. doomtheme.Name = "doomtheme"
  439. doomtheme.Looped = true
  440. doomtheme.SoundId = "rbxassetid://1156299775"
  441. doomtheme:Play()
  442.  
  443. Torso.ChildRemoved:connect(function(removed)
  444. if removed.Name == "doomtheme" then
  445.  
  446. doomtheme = Instance.new("Sound", Torso)
  447. doomtheme.Volume = 1
  448. doomtheme.Name = "doomtheme"
  449. doomtheme.Looped = true
  450. doomtheme.SoundId = "rbxassetid://1156299775"
  451. doomtheme:Play()
  452. end
  453. end)
  454.  
  455. for _,x in pairs(Character:GetChildren()) do
  456. if x:IsA("Decal") then x:Remove() end
  457. end
  458.  
  459. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  460. so = Instance.new("Sound")
  461. so.Parent = PARENT
  462. so.SoundId = "rbxassetid://"..ID
  463. so.Volume = VOL
  464. so.Looped = LOOP
  465. so:Play()
  466. removeuseless:AddItem(so,REMOVE)
  467. end
  468.  
  469. mouse.KeyDown:connect(function(Press)
  470. Press=Press:lower()
  471. if Press=='t' then
  472. if tauntdebounce then return end
  473. tauntdebounce = true
  474. local b1 = Instance.new("BillboardGui",Head)
  475. b1.Size = UDim2.new(0,4,0,1.6)
  476. b1.StudsOffset = Vector3.new(0,0,0)
  477. b1.Name = "laff"
  478. b1.AlwaysOnTop = true
  479. b1.StudsOffset = Vector3.new(0,2,0)
  480. b1.Adornee = Head
  481. removeuseless:AddItem(b1,3)
  482. local b2 = Instance.new("TextLabel",b1)
  483. b2.BackgroundTransparency = 1
  484. b2.Text = "KKKKKKKKKKKKKKK"
  485. b2.Font = "Garamond"
  486. b2.TextSize = 30
  487. b2.Name = "lafftext"
  488. b2.TextStrokeTransparency = 0
  489. b2.TextColor3 = BrickColor.new("Grey").Color
  490. b2.TextStrokeColor3 = Color3.new(0,0,0)
  491. b2.Size = UDim2.new(1,0,.5,0)
  492. laff = Instance.new("Sound",Head)
  493. laff.SoundId = "rbxassetid://2459094574"
  494. laff.Volume = 5
  495. laff:Play()
  496. wait(5)
  497. laff:Remove()
  498. tauntdebounce = false
  499. end
  500. end)
  501.  
  502. mouse.KeyDown:connect(function(Press)
  503. Press=Press:lower()
  504. if Press=='e' then
  505. if debounce then return end
  506. if equip then
  507. g1:Remove()
  508. light.Enabled = false
  509. pcall(function()
  510. temmy:Remove()
  511. end)
  512. for i,v in pairs(tommygun:GetDescendants()) do
  513. if v.Name == "temmy" then v:Remove()
  514. end
  515. end
  516. light.Enabled = false
  517. particlemiter1.Enabled = false
  518. hum.CameraOffset = Vector3.new(0,0,0)
  519. attacking = false
  520. equip = false
  521. shooting = false
  522. gunallowance = false
  523. ws = 18
  524. else
  525. g1 = Instance.new("BodyGyro", Root)
  526. g1.D = 175
  527. g1.P = 20000
  528. g1.MaxTorque = Vector3.new(0,9000,0)
  529. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  530. attacking = true
  531. debounce = true
  532. equip = true
  533. coroutine.wrap(function()
  534. while equip do
  535. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1)
  536. ws = 10
  537. swait()
  538. if Root.Velocity.y > 1 then
  539. position = "Jump3"
  540. elseif Root.Velocity.y < -1 then
  541. position = "Falling3"
  542. elseif Root.Velocity.Magnitude > 2 and running == false and attacking == true then
  543. position = "Walk3"
  544. elseif Root.Velocity.Magnitude < 2 and running == false and attacking == true then
  545. position = "Idle4"
  546. end
  547. end
  548. end)()
  549. coroutine.wrap(function()
  550. while equip do
  551. swait()
  552. settime = 0.05
  553. sine = sine + change
  554. if position == "Jump3" and attacking and not running then
  555. change = .65
  556. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  557. 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)
  558. elseif position == "Falling3" and attacking and not running then
  559. change = .65
  560. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.4)
  561. 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)
  562. elseif position == "Walk3" and attacking == true and running == false then
  563. change = .65
  564. 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)
  565. 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)
  566. 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)
  567. elseif position == "Idle4" and attacking == true and running == false then
  568. change = .65
  569. 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)
  570. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  571. 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)
  572. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  573. 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)
  574. end
  575. end
  576. end)()
  577. SOUND(RightArm,898163129,6,false,2)
  578. for i = 1, 30 do
  579. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.68,1.25) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-12)),.25)
  580. 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)
  581. 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)
  582. swait()
  583. end
  584. gunallowance = true
  585. mouse.Button1Down:connect(function()
  586. if gunallowance then
  587. particlemiter1.Enabled = true
  588. temmy = Instance.new("Sound",tommygun)
  589. temmy.SoundId = "rbxassetid://0"
  590. temmy.Volume = 10
  591. temmy.Name = "temmy"
  592. temmy.Looped = true
  593. temmy:Play()
  594. shooting = true
  595. end
  596. end)
  597. mouse.Button1Up:connect(function()
  598. if gunallowance then
  599. hum.CameraOffset = Vector3.new(0,0,0)
  600. light.Enabled = false
  601. particlemiter1.Enabled = false
  602. pcall(function()
  603. temmy:Remove()
  604. end)
  605. for i,v in pairs(tommygun:GetDescendants()) do
  606. if v.Name == "temmy" then v:Remove()
  607. end
  608. end
  609. shooting = false
  610. end
  611. end)
  612. coroutine.wrap(function()
  613. if firsttime2 then return end
  614. firsttime2 = true
  615. while true do
  616. swait(3)
  617. if shooting then
  618. if switch1 then
  619. switch1 = false
  620. switch2 = true
  621. light.Enabled = true
  622. elseif switch2 then
  623. switch1 = true
  624. switch2 = false
  625. light.Enabled = false
  626. end
  627. pcall(function()
  628. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  629. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(100))
  630. end
  631. end)
  632. end
  633. end
  634. end)()
  635. coroutine.wrap(function()
  636. if firsttime then return end
  637. firsttime = true
  638. while true do
  639. if shooting then
  640. 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)
  641. 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)
  642. pcall(function()
  643. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  644. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(100)
  645. end
  646. end)
  647. elseif not shooting then
  648. end
  649. swait()
  650. end
  651. end)()
  652. debounce = false
  653. end
  654. end
  655. end)
  656.  
  657. mouse.KeyDown:connect(function(Press)
  658. Press=Press:lower()
  659. if Press=='z' then
  660. print("Music switched to 1")
  661. id = 1639755005
  662. doomtheme.SoundId = "rbxassetid://"..id
  663. doomtheme:Play()
  664. end
  665. end)
  666.  
  667. mouse.KeyDown:connect(function(Press)
  668. Press=Press:lower()
  669. if Press=='v' then
  670. print("Music switched to 4")
  671. id = 2063370379
  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=='x' then
  680. print("Music switched to 2")
  681. id = 2815756000
  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=='c' then
  690. print("Music switched to 3")
  691. id = 1146711643
  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=='b' then
  700. print("Music switched to 5")
  701. id = 2862170886
  702. doomtheme.SoundId = "rbxassetid://"..id
  703. doomtheme:Play()
  704. end
  705. end)
  706.  
  707.  
  708. checks1 = coroutine.wrap(function() -------Checks
  709. while true do
  710. if Root.Velocity.y > 1 then
  711. position = "Jump"
  712. elseif Root.Velocity.y < -1 then
  713. position = "Falling"
  714. elseif Root.Velocity.Magnitude < 2 then
  715. position = "Idle"
  716. elseif Root.Velocity.Magnitude < 20 then
  717. position = "Walking"
  718. elseif Root.Velocity.Magnitude > 20 then
  719. position = "Running"
  720. else
  721. end
  722. wait()
  723. end
  724. end)
  725. checks1()
  726.  
  727. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  728. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  729. end
  730.  
  731. function ray2(StartPos, EndPos, Distance, Ignore)
  732. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  733. return ray(StartPos, DIRECTION, Distance, Ignore)
  734. end
  735.  
  736. OrgnC0 = Neck.C0
  737. local movelimbs = coroutine.wrap(function()
  738. while RunSrv.RenderStepped:wait() do
  739. TrsoLV = Torso.CFrame.lookVector
  740. Dist = nil
  741. Diff = nil
  742. if not MseGuide then
  743. print("Failed to recognize")
  744. else
  745. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  746. Dist = (Head.CFrame.p-Point).magnitude
  747. Diff = Head.CFrame.Y-Point.Y
  748. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  749. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  750. Diff2 = LeftArm.CFrame.Y-Point.Y
  751. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  752. 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)
  753. end
  754. end
  755. end)
  756. movelimbs()
  757. immortal = {}
  758. for i,v in pairs(Character:GetDescendants()) do
  759. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  760. 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
  761. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  762. end
  763. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  764. elseif v:IsA("JointInstance") then
  765. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  766. end
  767. end
  768. for e = 1, #immortal do
  769. if immortal[e] ~= nil then
  770. local STUFF = immortal[e]
  771. local PART = STUFF[1]
  772. local PARENT = STUFF[2]
  773. local MATERIAL = STUFF[3]
  774. local COLOR = STUFF[4]
  775. local TRANSPARENCY = STUFF[5]
  776. if levitate then
  777. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  778. PART.Material = MATERIAL
  779. PART.Color = COLOR
  780. PART.Transparency = TRANSPARENCY
  781. end
  782. PART.AncestryChanged:connect(function()
  783. PART.Parent = PARENT
  784. end)
  785. else
  786. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  787. PART.Material = MATERIAL
  788. PART.Color = COLOR
  789. PART.Transparency = TRANSPARENCY
  790. end
  791. PART.AncestryChanged:connect(function()
  792. PART.Parent = PARENT
  793. end)
  794. end
  795. end
  796. end
  797. function immortality()
  798. for e = 1, #immortal do
  799. if immortal[e] ~= nil then
  800. local STUFF = immortal[e]
  801. local PART = STUFF[1]
  802. local PARENT = STUFF[2]
  803. local MATERIAL = STUFF[3]
  804. local COLOR = STUFF[4]
  805. local TRANSPARENCY = STUFF[5]
  806. if PART.ClassName == "Part" and PART == Root then
  807. PART.Material = MATERIAL
  808. PART.Color = COLOR
  809. PART.Transparency = TRANSPARENCY
  810. end
  811. if PART.Parent ~= PARENT then
  812. hum:Remove()
  813. PART.Parent = PARENT
  814. hum = Instance.new("Humanoid",Character)
  815. hum.Name = "noneofurbusiness"
  816. end
  817. end
  818. end
  819. end
  820. coroutine.wrap(function()
  821. while true do
  822. if hum.Health < .1 then
  823. deadsound = Instance.new("Sound", Torso)
  824. deadsound.Volume = 6
  825. deadsound.SoundId = "rbxassetid://1411352723"
  826. deadsound:Play()
  827. immortality()
  828. end
  829. wait()
  830. end
  831. end)()
  832.  
  833. local anims = coroutine.wrap(function()
  834. while true do
  835. settime = 0.05
  836. sine = sine + change
  837. if position == "Jump" and attacking == false then
  838. change = 1
  839. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  840. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  841. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  842. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  843. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  844. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4)
  845. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  846. 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)
  847. elseif position == "Jump2" and attacking == false then
  848. change = 1
  849. 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)
  850. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  851. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  852. 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)
  853. 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)
  854. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  855. 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)
  856. 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)
  857. elseif position == "Falling" and attacking == false then
  858. change = 1
  859. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  860. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  861. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  862. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  863. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  864. 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)
  865. 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)
  866. elseif position == "Falling2" and attacking == false then
  867. change = 1
  868. 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)
  869. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  870. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  871. 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)
  872. 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)
  873. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  874. 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)
  875. 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)
  876. elseif position == "Walking" and attacking == false and running == false then
  877. change = 1.2
  878. walking = true
  879. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  880. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(10)), 0.1)
  881. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  882. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  883. 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)
  884. 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)
  885. 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)
  886. 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)
  887. elseif position == "Idle" and attacking == false and running == false then
  888. change = .5
  889. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  890. 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)
  891. 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)
  892. 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)
  893. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  894. 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)
  895. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  896. 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)
  897. elseif position == "Idle2" and attacking == false and running == false then
  898. change = .75
  899. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1)
  900. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  901. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1)
  902. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  903. 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)
  904. 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)
  905. 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)
  906. 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)
  907. elseif position == "Walking2" and attacking == false and running == false then
  908. ws = 50
  909. 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)
  910. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  911. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  912. 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)
  913. 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)
  914. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  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.3)
  916. 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)
  917. elseif position == "Running" and attacking == false then
  918. change = 1
  919. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  920. 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)
  921. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  922. 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)
  923. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  924. 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)
  925. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  926. 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)
  927. end
  928. swait()
  929. end
  930. end)
  931. anims()
  932. warn("Risen from hell, ready to prove his reputation. Made by Supr14")
Advertisement
Add Comment
Please, Sign In to add comment