Void_scripter0

Vibe checker

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