sawgamer1

Untitled

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