Advertisement
HenloMyDude

krystalgun

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