PasterXIV

Untitled

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