Zach_rookie_editor3

Elio Blasio's Mental break down

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