Advertisement
Guest User

elio elio elio lol

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