Advertisement
Saadastic

Untitled

Apr 2nd, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.10 KB | None | 0 0
  1. -----------//Elio Blasio\\-----------
  2. --[[Movelist
  3. E = Equip/Unequip, click to shoot, hold to spray
  4. T = Taunt
  5. ---------]]
  6. --Credits to Shackluster for the refit/anti-breakjoints function, he's a cool guy/great scripter.--
  7. --Ayy i'm not dead yet, take that haters, if i even had any to begin with.--
  8. --Keeping this script small since big ones will cause major lag & exceed script limits--
  9. --Using a FE converter because i'm way too lazy to create remotes for it--
  10.  
  11. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  12. do
  13. script.Parent = owner.Character
  14. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  15. local function NewFakeEvent()
  16. local Bind = Instance.new("BindableEvent")
  17. local Fake;Fake = {Connections = {},
  18. fakeEvent=true;
  19. Connect=function(self,Func)
  20. Bind.Event:connect(Func)
  21. self.Connections[Bind] = true
  22. return setmetatable({Connected = true},{
  23. __index = function (self,Index)
  24. if Index:lower() == "disconnect" then
  25. return function() Fake.Connections[Bind] = false;self.Connected = false end
  26. end
  27. return Fake[Index]
  28. end;
  29. __tostring = function() return "Connection" end;
  30. })
  31. end}
  32. Fake.connect = Fake.Connect;return Fake;
  33. end
  34. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  35. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  36. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  37. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  38. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  39. local function TriggerEvent(self,Event,...)
  40. local Trigger = Mouse[Event]
  41. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  42. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  43. end
  44. end
  45. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  46. Event.OnServerEvent:Connect(function(FiredBy,Input)
  47. if FiredBy.Name ~= owner.Name then return end
  48. if Input.MouseEvent then
  49. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  50. else
  51. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  52. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  53. for _,Action in pairs(ContextActionService.Actions) do
  54. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  55. end
  56. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  57. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  58. end
  59. end)
  60. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  61. Event.Parent = NLS([[
  62. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  63. local Input = function(Input,gameProcessedEvent)
  64. if gameProcessedEvent then return end
  65. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  66. end
  67. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  68. local Hit,Target
  69. while wait(1/30) do
  70. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  71. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  72. end
  73. end
  74. ]],owner.Character)
  75. end
  76. RealGame = game;game = setmetatable({},{
  77. __index = function (self,Index)
  78. local Sandbox = function (Thing)
  79. if Thing:IsA("Player") then
  80. local RealPlayer = Thing
  81. return setmetatable({},{
  82. __index = function (self,Index)
  83. local Type = type(RealPlayer[Index])
  84. if Type == "function" then
  85. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  86. return function (self)return InternalData["Mouse"] end
  87. end
  88. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  89. end
  90. return RealPlayer[Index]
  91. end;
  92. __tostring = function(self) return RealPlayer.Name end
  93. })
  94. end
  95. end
  96. if RealGame[Index] then
  97. local Type = type(RealGame[Index])
  98. if Type == "function" then
  99. if Index:lower() == "getservice" or Index:lower() == "service" then
  100. return function (self,Service)
  101. local FakeServices = {
  102. ["players"] = function()
  103. return setmetatable({},{
  104. __index = function (self2,Index2)
  105. local RealService = RealGame:GetService(Service)
  106. local Type2 = type(Index2)
  107. if Type2 == "function" then
  108. return function (self,...) return RealService[Index2](RealService,...)end
  109. else
  110. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  111. return RealService[Index2]
  112. end
  113. end;
  114. __tostring = function(self) return RealGame:GetService(Service).Name end
  115. })
  116. end;
  117. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  118. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  119. ["runservice"] = function()
  120. return setmetatable({},{
  121. __index = function(self2,Index2)
  122. local RealService = RealGame:GetService(Service)
  123. local Type2 = type(Index2)
  124. if Type2 == "function" then
  125. return function (self,...) return RealService[Index2](RealService,...) end
  126. else
  127. local RunServices = {
  128. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  129. ["renderstepped"] = function() return RealService["Stepped"] end
  130. }
  131. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  132. return RealService[Index2]
  133. end
  134. end
  135. })
  136. end
  137. }
  138. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  139. return RealGame:GetService(Service)
  140. end
  141. end
  142. return function (self,...) return RealGame[Index](RealGame,...) end
  143. else
  144. if game:GetService(Index) then return game:GetService(Index) end
  145. return RealGame[Index]
  146. end
  147. end
  148. return nil
  149. end
  150. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  151.  
  152. Player=game.Players.LocalPlayer
  153. Character=Player.Character
  154. Character.Humanoid.Name = "noneofurbusiness"
  155. hum = Character.noneofurbusiness
  156. LeftArm=Character["Left Arm"]
  157. LeftLeg=Character["Left Leg"]
  158. RightArm=Character["Right Arm"]
  159. RightLeg=Character["Right Leg"]
  160. Root=Character["HumanoidRootPart"]
  161. Head=Character["Head"]
  162. Torso=Character["Torso"]
  163. Neck=Torso["Neck"]
  164. mouse = Player:GetMouse()
  165. walking = false
  166. jumping = false
  167. attacking = false
  168. firsttime = false
  169. tauntdebounce = false
  170. position = nil
  171. MseGuide = true
  172. running = false
  173. settime = 0
  174. sine = 0
  175. t = 0
  176. ws = 18
  177. change = 1
  178. combo1 = true
  179. equip = false
  180. dgs = 75
  181. combo2 = false
  182. switch1 = true
  183. switch2 = false
  184. firsttime2 = false
  185. combo3 = false
  186. gunallowance = false
  187. shooting = false
  188. RunSrv = game:GetService("RunService")
  189. RenderStepped = game:GetService("RunService").RenderStepped
  190. removeuseless = game:GetService("Debris")
  191.  
  192. screenGui = Instance.new("ScreenGui")
  193. screenGui.Parent = script.Parent
  194.  
  195. local HEADLERP = Instance.new("ManualWeld")
  196. HEADLERP.Parent = Head
  197. HEADLERP.Part0 = Head
  198. HEADLERP.Part1 = Head
  199. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  200.  
  201. local TORSOLERP = Instance.new("ManualWeld")
  202. TORSOLERP.Parent = Root
  203. TORSOLERP.Part0 = Torso
  204. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  205.  
  206. local ROOTLERP = Instance.new("ManualWeld")
  207. ROOTLERP.Parent = Root
  208. ROOTLERP.Part0 = Root
  209. ROOTLERP.Part1 = Torso
  210. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  211.  
  212. local RIGHTARMLERP = Instance.new("ManualWeld")
  213. RIGHTARMLERP.Parent = RightArm
  214. RIGHTARMLERP.Part0 = RightArm
  215. RIGHTARMLERP.Part1 = Torso
  216. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  217.  
  218. local LEFTARMLERP = Instance.new("ManualWeld")
  219. LEFTARMLERP.Parent = LeftArm
  220. LEFTARMLERP.Part0 = LeftArm
  221. LEFTARMLERP.Part1 = Torso
  222. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  223.  
  224. local RIGHTLEGLERP = Instance.new("ManualWeld")
  225. RIGHTLEGLERP.Parent = RightLeg
  226. RIGHTLEGLERP.Part0 = RightLeg
  227. RIGHTLEGLERP.Part1 = Torso
  228. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  229.  
  230. local LEFTLEGLERP = Instance.new("ManualWeld")
  231. LEFTLEGLERP.Parent = LeftLeg
  232. LEFTLEGLERP.Part0 = LeftLeg
  233. LEFTLEGLERP.Part1 = Torso
  234. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  235.  
  236. local function weldBetween(a, b)
  237. local weld = Instance.new("ManualWeld", a)
  238. weld.Part0 = a
  239. weld.Part1 = b
  240. weld.C0 = a.CFrame:inverse() * b.CFrame
  241. return weld
  242. end
  243.  
  244. function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
  245. A = Instance.new("Attachment", PARENT)
  246. A.Position = POSITION1
  247. A.Name = "A"
  248. B = Instance.new("Attachment", PARENT)
  249. B.Position = POSITION2
  250. B.Name = "B"
  251. tr1 = Instance.new("Trail", PARENT)
  252. tr1.Attachment0 = A
  253. tr1.Attachment1 = B
  254. tr1.Enabled = true
  255. tr1.Lifetime = LIFETIME
  256. tr1.TextureMode = "Static"
  257. tr1.LightInfluence = 0
  258. tr1.Color = COLOR
  259. tr1.Transparency = NumberSequence.new(0, 1)
  260. end
  261.  
  262. 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=338740550"
  267. Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=338750779"
  268.  
  269. --//=================================\\
  270. --|| USEFUL VALUES
  271. --\\=================================//
  272.  
  273. Animation_Speed = 3
  274. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  275. local Speed = 20
  276. local SIZE = 1.4
  277. local Player_Size = 1.4
  278. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  279. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  280. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  281. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  282. local DAMAGEMULTIPLIER = 1
  283. local ANIM = "Idle"
  284. local ATTACK = false
  285. local EQUIPPED = false
  286. local HOLD = false
  287. local COMBO = 1
  288. local Rooted = false
  289. local SINE = 0
  290. local KEYHOLD = false
  291. local CHANGE = 2 / Animation_Speed
  292. local WALKINGANIM = false
  293. local VALUE1 = false
  294. local VALUE2 = false
  295. local ROBLOXIDLEANIMATION = IT("Animation")
  296. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  297. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  298. local ATANIM = IT("Animation")
  299. ATANIM.Name = "Attack Animation"
  300. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  301. --ROBLOXIDLEANIMATION.Parent = Humanoid
  302. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  303. WEAPONGUI.Name = "Weapon GUI"
  304. local Weapon = IT("Model")
  305. Weapon.Name = "Adds"
  306. local Effects = IT("Folder", Weapon)
  307. Effects.Name = "Effects"
  308. local ANIMATOR = Humanoid.Animator
  309. local ANIMATE = Character.Animate
  310. local UNANCHOR = true
  311. local CLOCKLOOP = 0
  312. local SONG = 929330882
  313. local CLOCKTARGET = nil
  314. local CLOCKSPEED = 5
  315. script.Parent = WEAPONGUI
  316. local CLONE = Character:Clone()
  317. CLONE.Parent = nil
  318. Character.Archivable = false
  319. local sick = Instance.new("Sound",Torso)
  320. local BOLTSOUNDS = {168586621,168586586,178452241}
  321.  
  322. --//=================================\\
  323. --\\=================================//
  324.  
  325.  
  326. skull = Instance.new("Part",Character)
  327. skull.Size = Vector3.new(2,2,2)
  328. skull.CFrame = Head.CFrame
  329. skull.CanCollide = false
  330. skullweld = Instance.new("Weld",skull)
  331. skullweld.Part0 = skull
  332. skullweld.Part1 = Head
  333. skullweld.C0 = skull.CFrame:inverse() * Head.CFrame
  334. mskull = Instance.new("SpecialMesh", skull)
  335. mskull.MeshType = "FileMesh"
  336. mskull.Scale = Vector3.new(1.12, 1.12, 1.12)
  337. mskull.MeshId,mskull.TextureId = 'http://www.roblox.com/asset/?id=181343290','http://www.roblox.com/asset/?id=181343313'
  338. fedora = Instance.new("Part",Character)
  339. fedora.Size = Vector3.new(2,2,2)
  340. fedora.CFrame = Head.CFrame
  341. fedora.CanCollide = false
  342. fedoraweld = Instance.new("Weld",fedora)
  343. fedoraweld.Part0 = fedora
  344. fedoraweld.Part1 = Head
  345. fedoraweld.C0 = fedora.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.8,0)
  346. mfedora = Instance.new("SpecialMesh", fedora)
  347. mfedora.MeshType = "FileMesh"
  348. mfedora.Scale = Vector3.new(1.1, 1.1, 1.1)
  349. mfedora.MeshId,mfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
  350. tommygun = Instance.new("Part",Character)
  351. tommygun.Size = Vector3.new(2,2,2)
  352. tommygun.CFrame = RightArm.CFrame
  353. tommygun.CanCollide = false
  354. tommygunweld = Instance.new("Weld",tommygun)
  355. tommygunweld.Part0 = tommygun
  356. tommygunweld.Part1 = RightArm
  357. tommygunweld.C0 = tommygun.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0)
  358. mtommygun = Instance.new("SpecialMesh", tommygun)
  359. mtommygun.MeshType = "FileMesh"
  360. mtommygun.Scale = Vector3.new(1, 1, 1)
  361. mtommygun.MeshId,mtommygun.TextureId = 'http://www.roblox.com/asset/?id=116679805','http://www.roblox.com/asset/?id=116679995'
  362. shootbox = Instance.new("Part",Character)
  363. shootbox.Size = Vector3.new(.2,.2,.2)
  364. shootbox.CanCollide = false
  365. shootbox.Transparency = 1
  366. shootbox.CFrame = tommygun.CFrame
  367. shootboxweld = weldBetween(shootbox,tommygun)
  368. shootboxweld.C0 = CFrame.new(0,-.05,2.62)
  369. light = Instance.new("PointLight", shootbox)
  370. light.Color = BrickColor.new("Bright yellow").Color
  371. light.Range = 5
  372. light.Brightness = 11
  373. light.Enabled = false
  374. particlemiter1 = Instance.new("ParticleEmitter", shootbox)
  375. particlemiter1.Enabled = false
  376. particlemiter1.Texture = "rbxassetid://461242617"
  377. particlemiter1.Lifetime = NumberRange.new(.1)
  378. particlemiter1.Size = NumberSequence.new(1,0)
  379. particlemiter1.Rate = 20
  380. particlemiter1.RotSpeed = NumberRange.new(0)
  381. particlemiter1.Speed = NumberRange.new(0)
  382. tommygunammo = Instance.new("Part",Character)
  383. tommygunammo.Size = Vector3.new(2,2,2)
  384. tommygunammo.CFrame = tommygun.CFrame
  385. tommygunammo.CanCollide = false
  386. tommygunammoweld = Instance.new("Weld",tommygunammo)
  387. tommygunammoweld.Part0 = tommygunammo
  388. tommygunammoweld.Part1 = tommygun
  389. tommygunammoweld.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(0,.4,.25) * CFrame.Angles(math.rad(0),math.rad(0),0)
  390. mtommygunammo = Instance.new("SpecialMesh", tommygunammo)
  391. mtommygunammo.MeshType = "FileMesh"
  392. mtommygunammo.Scale = Vector3.new(1, 1, 1)
  393. mtommygunammo.MeshId,mtommygunammo.TextureId = 'http://www.roblox.com/asset/?id=116740155','http://www.roblox.com/asset/?id=116679995'
  394. mask = Instance.new("Part",Character)
  395. mask.Size = Vector3.new(2,2,2)
  396. mask.CFrame = Head.CFrame
  397. mask.CanCollide = false
  398. maskweld = Instance.new("Weld",mask)
  399. maskweld.Part0 = mask
  400. maskweld.Part1 = Head
  401. maskweld.C0 = mask.CFrame:inverse() * Head.CFrame * CFrame.new(-.2,0,.62) * CFrame.Angles(math.rad(0),math.rad(10),math.rad(0))
  402. mmask = Instance.new("SpecialMesh", mask)
  403. mmask.MeshType = "FileMesh"
  404. mmask.Scale = Vector3.new(1.25, 1.25, 1.25)
  405. mmask.MeshId,mmask.TextureId = 'http://www.roblox.com/asset/?id=12470186','http://www.roblox.com/asset/?id=12470201'
  406.  
  407.  
  408.  
  409. coroutine.wrap(function()
  410. while wait() do
  411. hum.WalkSpeed = ws
  412. LeftArm.BrickColor = BrickColor.new("Really black")
  413. RightArm.BrickColor = BrickColor.new("Really black")
  414. Head.BrickColor = BrickColor.new("Really black")
  415. end
  416. end)()
  417. godmode = coroutine.wrap(function()
  418. for i,v in pairs(Character:GetChildren()) do
  419. if v:IsA("BasePart") and v ~= Root then
  420. v.Anchored = false
  421. end
  422. end
  423. while true do
  424. hum.MaxHealth = math.huge
  425. wait(0.0000001)
  426. hum.Health = math.huge
  427. wait()
  428. end
  429. end)
  430. godmode()
  431. ff = Instance.new("ForceField", Character)
  432. ff.Visible = false
  433.  
  434. coroutine.wrap(function()
  435. for i,v in pairs(Character:GetChildren()) do
  436. if v.Name == "Animate" then v:Remove()
  437. end
  438. end
  439. end)()
  440.  
  441. function damagealll(Radius,Position)
  442. local Returning = {}
  443. for _,v in pairs(workspace:GetChildren()) do
  444. if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
  445. if v:FindFirstChild("Torso") then
  446. local Mag = (v.Torso.Position - Position).magnitude
  447. if Mag < Radius then
  448. table.insert(Returning,v)
  449. end
  450. elseif v:FindFirstChild("UpperTorso") then
  451. local Mag = (v.UpperTorso.Position - Position).magnitude
  452. if Mag < Radius then
  453. table.insert(Returning,v)
  454. end
  455. end
  456. end
  457. end
  458. return Returning
  459. end
  460.  
  461. ArtificialHB = Instance.new("BindableEvent", script)
  462. ArtificialHB.Name = "Heartbeat"
  463. script:WaitForChild("Heartbeat")
  464.  
  465. frame = 1 / 60
  466. tf = 0
  467. allowframeloss = false
  468. tossremainder = false
  469.  
  470.  
  471. lastframe = tick()
  472. script.Heartbeat:Fire()
  473.  
  474.  
  475. game:GetService("RunService").Heartbeat:connect(function(s, p)
  476. tf = tf + s
  477. if tf >= frame then
  478. if allowframeloss then
  479. script.Heartbeat:Fire()
  480. lastframe = tick()
  481. else
  482. for i = 1, math.floor(tf / frame) do
  483. script.Heartbeat:Fire()
  484. end
  485. lastframe = tick()
  486. end
  487. if tossremainder then
  488. tf = 0
  489. else
  490. tf = tf - frame * math.floor(tf / frame)
  491. end
  492. end
  493. end)
  494.  
  495. function swait(num)
  496. if num == 0 or num == nil then
  497. game:service("RunService").Stepped:wait(0)
  498. else
  499. for i = 0, num do
  500. game:service("RunService").Stepped:wait(0)
  501. end
  502. end
  503. end
  504.  
  505. doomtheme = Instance.new("Sound", Torso)
  506. doomtheme.Volume = 1
  507. doomtheme.Name = "doomtheme"
  508. doomtheme.Looped = true
  509. doomtheme.SoundId = "rbxassetid://318812395"
  510. doomtheme:Play()
  511.  
  512. Torso.ChildRemoved:connect(function(removed)
  513. if removed.Name == "doomtheme" then
  514.  
  515. doomtheme = Instance.new("Sound", Torso)
  516. doomtheme.Volume = 1
  517. doomtheme.Name = "doomtheme"
  518. doomtheme.Looped = true
  519. doomtheme.SoundId = "rbxassetid://318812395"
  520. doomtheme:Play()
  521. end
  522. end)
  523.  
  524. for _,n in pairs(Character:GetChildren()) do
  525. if n:IsA("Accessory") then n:Remove() end
  526. end
  527. for _,x in pairs(Character:GetChildren()) do
  528. if x:IsA("Decal") then x:Remove() end
  529. end
  530.  
  531. function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
  532. so = Instance.new("Sound")
  533. so.Parent = PARENT
  534. so.SoundId = "rbxassetid://"..ID
  535. so.Volume = VOL
  536. so.Looped = LOOP
  537. so:Play()
  538. removeuseless:AddItem(so,REMOVE)
  539. end
  540.  
  541. mouse.KeyDown:connect(function(Press)
  542. Press=Press:lower()
  543. if Press=='t' then
  544. if tauntdebounce then return end
  545. tauntdebounce = true
  546. local b1 = Instance.new("BillboardGui",Head)
  547. b1.Size = UDim2.new(0,4,0,1.6)
  548. b1.StudsOffset = Vector3.new(0,0,0)
  549. b1.Name = "laff"
  550. b1.AlwaysOnTop = true
  551. b1.StudsOffset = Vector3.new(0,2,0)
  552. b1.Adornee = Head
  553. removeuseless:AddItem(b1,3)
  554. local b2 = Instance.new("TextLabel",b1)
  555. b2.BackgroundTransparency = 1
  556. b2.Text = "HeHeHeHeHeHeHe..."
  557. b2.Font = "Garamond"
  558. b2.TextSize = 30
  559. b2.Name = "lafftext"
  560. b2.TextStrokeTransparency = 0
  561. b2.TextColor3 = BrickColor.new("Grey").Color
  562. b2.TextStrokeColor3 = Color3.new(0,0,0)
  563. b2.Size = UDim2.new(1,0,.5,0)
  564. laff = Instance.new("Sound",Head)
  565. laff.SoundId = "rbxassetid://2126502539"
  566. laff.Volume = 5
  567. laff:Play()
  568. wait(5)
  569. laff:Remove()
  570. tauntdebounce = false
  571. end
  572. end)
  573.  
  574. mouse.KeyDown:connect(function(Press)
  575. Press=Press:lower()
  576. if Press=='e' then
  577. if debounce then return end
  578. if equip then
  579. g1:Remove()
  580. light.Enabled = false
  581. pcall(function()
  582. temmy:Remove()
  583. end)
  584. for i,v in pairs(tommygun:GetDescendants()) do
  585. if v.Name == "temmy" then v:Remove()
  586. end
  587. end
  588. light.Enabled = false
  589. particlemiter1.Enabled = false
  590. hum.CameraOffset = Vector3.new(0,0,0)
  591. attacking = false
  592. equip = false
  593. shooting = false
  594. gunallowance = false
  595. ws = 18
  596. else
  597. g1 = Instance.new("BodyGyro", Root)
  598. g1.D = 175
  599. g1.P = 20000
  600. g1.MaxTorque = Vector3.new(0,9000,0)
  601. g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p)
  602. attacking = true
  603. debounce = true
  604. equip = true
  605. coroutine.wrap(function()
  606. while equip do
  607. g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1)
  608. ws = 10
  609. swait()
  610. if Root.Velocity.y > 1 then
  611. position = "Jump3"
  612. elseif Root.Velocity.y < -1 then
  613. position = "Falling3"
  614. elseif Root.Velocity.Magnitude > 2 and running == false and attacking == true then
  615. position = "Walk3"
  616. elseif Root.Velocity.Magnitude < 2 and running == false and attacking == true then
  617. position = "Idle4"
  618. end
  619. end
  620. end)()
  621. coroutine.wrap(function()
  622. while equip do
  623. swait()
  624. settime = 0.05
  625. sine = sine + change
  626. if position == "Jump3" and attacking and not running then
  627. change = .65
  628. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  629. 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)
  630. elseif position == "Falling3" and attacking and not running then
  631. change = .65
  632. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.4)
  633. 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)
  634. elseif position == "Walk3" and attacking == true and running == false then
  635. change = .65
  636. 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)
  637. 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)
  638. 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)
  639. elseif position == "Idle4" and attacking == true and running == false then
  640. change = .65
  641. 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)
  642. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  643. 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)
  644. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  645. 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)
  646. end
  647. end
  648. end)()
  649. SOUND(RightArm,898163129,6,false,2)
  650. for i = 1, 30 do
  651. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.68,1.25) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-12)),.25)
  652. 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)
  653. 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)
  654. swait()
  655. end
  656. gunallowance = true
  657. mouse.Button1Down:connect(function()
  658. if gunallowance then
  659. particlemiter1.Enabled = true
  660. temmy = Instance.new("Sound",tommygun)
  661. temmy.SoundId = "rbxassetid://2204318084"
  662. temmy.Volume = 6
  663. temmy.Name = "temmy"
  664. temmy.Looped = true
  665. temmy:Play()
  666. shooting = true
  667. end
  668. end)
  669. mouse.Button1Up:connect(function()
  670. if gunallowance then
  671. hum.CameraOffset = Vector3.new(0,0,0)
  672. light.Enabled = false
  673. particlemiter1.Enabled = false
  674. pcall(function()
  675. temmy:Remove()
  676. end)
  677. for i,v in pairs(tommygun:GetDescendants()) do
  678. if v.Name == "temmy" then v:Remove()
  679. end
  680. end
  681. shooting = false
  682. end
  683. end)
  684. coroutine.wrap(function()
  685. if firsttime2 then return end
  686. firsttime2 = true
  687. while true do
  688. swait(3)
  689. if shooting then
  690. if switch1 then
  691. switch1 = false
  692. switch2 = true
  693. light.Enabled = true
  694. elseif switch2 then
  695. switch1 = true
  696. switch2 = false
  697. light.Enabled = false
  698. end
  699. pcall(function()
  700. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  701. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(3,7))
  702. end
  703. end)
  704. end
  705. end
  706. end)()
  707. coroutine.wrap(function()
  708. if firsttime then return end
  709. firsttime = true
  710. while true do
  711. if shooting then
  712. 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)
  713. 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)
  714. pcall(function()
  715. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
  716. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(1)
  717. end
  718. end)
  719. elseif not shooting then
  720. end
  721. swait()
  722. end
  723. end)()
  724. debounce = false
  725. end
  726. end
  727. end)
  728.  
  729. mouse.KeyDown:connect(function(Press)
  730. Press=Press:lower()
  731. if Press=='z' then
  732. print("Music switched to 1")
  733. id = 1166995642
  734. doomtheme.SoundId = "rbxassetid://"..id
  735. doomtheme:Play()
  736. end
  737. end)
  738.  
  739. mouse.KeyDown:connect(function(Press)
  740. Press=Press:lower()
  741. if Press=='v' then
  742. print("Music switched to 4")
  743. id = 1141556798
  744. doomtheme.SoundId = "rbxassetid://"..id
  745. doomtheme:Play()
  746. end
  747. end)
  748.  
  749. mouse.KeyDown:connect(function(Press)
  750. Press=Press:lower()
  751. if Press=='x' then
  752. print("Music switched to 2")
  753. id = 1166995642
  754. doomtheme.SoundId = "rbxassetid://"..id
  755. doomtheme:Play()
  756. end
  757. end)
  758.  
  759. mouse.KeyDown:connect(function(Press)
  760. Press=Press:lower()
  761. if Press=='c' then
  762. print("Music switched to 3")
  763. id = 1141556798
  764. doomtheme.SoundId = "rbxassetid://"..id
  765. doomtheme:Play()
  766. end
  767. end)
  768.  
  769. mouse.KeyDown:connect(function(Press)
  770. Press=Press:lower()
  771. if Press=='b' then
  772. print("Music switched to 5")
  773. id = 1141556798
  774. doomtheme.SoundId = "rbxassetid://"..id
  775. doomtheme:Play()
  776. end
  777. end)
  778.  
  779.  
  780. checks1 = coroutine.wrap(function() -------Checks
  781. while true do
  782. if Root.Velocity.y > 1 then
  783. position = "Jump"
  784. elseif Root.Velocity.y < -1 then
  785. position = "Falling"
  786. elseif Root.Velocity.Magnitude < 2 then
  787. position = "Idle"
  788. elseif Root.Velocity.Magnitude < 20 then
  789. position = "Walking"
  790. elseif Root.Velocity.Magnitude > 20 then
  791. position = "Running"
  792. else
  793. end
  794. wait()
  795. end
  796. end)
  797. checks1()
  798.  
  799. function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  800. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  801. end
  802.  
  803. function ray2(StartPos, EndPos, Distance, Ignore)
  804. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  805. return ray(StartPos, DIRECTION, Distance, Ignore)
  806. end
  807.  
  808. OrgnC0 = Neck.C0
  809. local movelimbs = coroutine.wrap(function()
  810. while RunSrv.RenderStepped:wait() do
  811. TrsoLV = Torso.CFrame.lookVector
  812. Dist = nil
  813. Diff = nil
  814. if not MseGuide then
  815. print("Failed to recognize")
  816. else
  817. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  818. Dist = (Head.CFrame.p-Point).magnitude
  819. Diff = Head.CFrame.Y-Point.Y
  820. local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
  821. Dist2 = (LeftArm.CFrame.p-Point).magnitude
  822. Diff2 = LeftArm.CFrame.Y-Point.Y
  823. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  824. 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)
  825. end
  826. end
  827. end)
  828. movelimbs()
  829. immortal = {}
  830. for i,v in pairs(Character:GetDescendants()) do
  831. if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
  832. 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
  833. v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  834. end
  835. table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
  836. elseif v:IsA("JointInstance") then
  837. table.insert(immortal,{v,v.Parent,nil,nil,nil})
  838. end
  839. end
  840. for e = 1, #immortal do
  841. if immortal[e] ~= nil then
  842. local STUFF = immortal[e]
  843. local PART = STUFF[1]
  844. local PARENT = STUFF[2]
  845. local MATERIAL = STUFF[3]
  846. local COLOR = STUFF[4]
  847. local TRANSPARENCY = STUFF[5]
  848. if levitate then
  849. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  850. PART.Material = MATERIAL
  851. PART.Color = COLOR
  852. PART.Transparency = TRANSPARENCY
  853. end
  854. PART.AncestryChanged:connect(function()
  855. PART.Parent = PARENT
  856. end)
  857. else
  858. if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
  859. PART.Material = MATERIAL
  860. PART.Color = COLOR
  861. PART.Transparency = TRANSPARENCY
  862. end
  863. PART.AncestryChanged:connect(function()
  864. PART.Parent = PARENT
  865. end)
  866. end
  867. end
  868. end
  869. function immortality()
  870. for e = 1, #immortal do
  871. if immortal[e] ~= nil then
  872. local STUFF = immortal[e]
  873. local PART = STUFF[1]
  874. local PARENT = STUFF[2]
  875. local MATERIAL = STUFF[3]
  876. local COLOR = STUFF[4]
  877. local TRANSPARENCY = STUFF[5]
  878. if PART.ClassName == "Part" and PART == Root then
  879. PART.Material = MATERIAL
  880. PART.Color = COLOR
  881. PART.Transparency = TRANSPARENCY
  882. end
  883. if PART.Parent ~= PARENT then
  884. hum:Remove()
  885. PART.Parent = PARENT
  886. hum = Instance.new("Humanoid",Character)
  887. hum.Name = "noneofurbusiness"
  888. end
  889. end
  890. end
  891. end
  892. coroutine.wrap(function()
  893. while true do
  894. if hum.Health < .1 then
  895. deadsound = Instance.new("Sound", Torso)
  896. deadsound.Volume = 6
  897. deadsound.SoundId = "rbxassetid://1411352723"
  898. deadsound:Play()
  899. immortality()
  900. end
  901. wait()
  902. end
  903. end)()
  904.  
  905. local anims = coroutine.wrap(function()
  906. while true do
  907. settime = 0.05
  908. sine = sine + change
  909. if position == "Jump" and attacking == false then
  910. change = 1
  911. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  912. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  913. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  914. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  915. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  916. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4)
  917. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  918. 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)
  919. elseif position == "Jump2" and attacking == false then
  920. change = 1
  921. 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)
  922. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  923. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  924. 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)
  925. 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)
  926. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  927. 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)
  928. 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)
  929. elseif position == "Falling" and attacking == false then
  930. change = 1
  931. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  932. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  933. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  934. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  935. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  936. 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)
  937. 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)
  938. elseif position == "Falling2" and attacking == false then
  939. change = 1
  940. 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)
  941. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  942. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  943. 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)
  944. 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)
  945. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  946. 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)
  947. 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)
  948. elseif position == "Walking" and attacking == false and running == false then
  949. change = 1.2
  950. walking = true
  951. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  952. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(10)), 0.1)
  953. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  954. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  955. 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)
  956. 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)
  957. 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)
  958. 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)
  959. elseif position == "Idle" and attacking == false and running == false then
  960. change = .5
  961. tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25)
  962. 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)
  963. 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)
  964. 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)
  965. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  966. 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)
  967. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  968. 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)
  969. elseif position == "Idle2" and attacking == false and running == false then
  970. change = .75
  971. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1)
  972. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  973. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1)
  974. LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)
  975. 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)
  976. 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)
  977. 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)
  978. 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)
  979. elseif position == "Walking2" and attacking == false and running == false then
  980. ws = 50
  981. 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)
  982. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3)
  983. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3)
  984. 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)
  985. 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)
  986. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3)
  987. 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)
  988. 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)
  989. elseif position == "Running" and attacking == false then
  990. change = 1
  991. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  992. 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)
  993. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  994. 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)
  995. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  996. 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)
  997. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  998. 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)
  999. end
  1000. swait()
  1001. end
  1002. end)
  1003. anims()
  1004. warn("Risen from hell, ready to prove his reputation. Made by Supr14")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement