daily pastebin goal
45%
SHARE
TWEET

Untitled

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