SHARE
TWEET

bruh

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