UnknownZealot

Untitled

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