Advertisement
DogeLiker

thompson boie (IM BACK)

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