Advertisement
Guest User

The Hatred Fbi

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