Advertisement
Guest User

Elio blastio fe

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