Advertisement
Jamil_And_Brol

Elio Hell Keeper

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