Advertisement
UnknownZealot

BROKEN (WONT WORK) dont try it

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