PasterXIV

Untitled

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