Advertisement
idkwhatiam

DarkHeart (WIP)

May 31st, 2019
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.07 KB | None | 0 0
  1. --ok--
  2.  
  3. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  4. do
  5.     script.Parent = owner.Character
  6.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  7.     local function NewFakeEvent()
  8.         local Bind = Instance.new("BindableEvent")
  9.         local Fake;Fake = {Connections = {},
  10.         fakeEvent=true;
  11.         Connect=function(self,Func)
  12.             Bind.Event:connect(Func)
  13.             self.Connections[Bind] = true
  14.             return setmetatable({Connected = true},{
  15.             __index = function (self,Index)
  16.                 if Index:lower() == "disconnect" then
  17.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  18.                 end
  19.                 return Fake[Index]
  20.             end;
  21.             __tostring = function() return "Connection" end;
  22.         })
  23.         end}
  24.         Fake.connect = Fake.Connect;return Fake;
  25.     end
  26.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  27.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  28.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  29.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  30.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  31.     local function TriggerEvent(self,Event,...)
  32.         local Trigger = Mouse[Event]
  33.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  34.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  35.         end
  36.     end
  37.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  38.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  39.         if FiredBy.Name ~= owner.Name then return end
  40.         if Input.MouseEvent then
  41.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  42.         else
  43.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  44.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  45.             for _,Action in pairs(ContextActionService.Actions) do
  46.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  47.             end
  48.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  49.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  50.         end
  51.     end)
  52.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  53.     Event.Parent = NLS([[
  54.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  55.         local Input = function(Input,gameProcessedEvent)
  56.             if gameProcessedEvent then return end
  57.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  58.         end
  59.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  60.         local Hit,Target
  61.         while wait(1/30) do
  62.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  64.             end
  65.         end
  66.     ]],owner.Character)
  67. end
  68. RealGame = game;game = setmetatable({},{
  69.     __index = function (self,Index)
  70.         local Sandbox = function (Thing)
  71.             if Thing:IsA("Player") then
  72.                 local RealPlayer = Thing
  73.                 return setmetatable({},{
  74.                     __index = function (self,Index)
  75.                         local Type = type(RealPlayer[Index])
  76.                         if Type == "function" then
  77.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  78.                                 return function (self)return InternalData["Mouse"] end
  79.                             end
  80.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  81.                         end
  82.                         return RealPlayer[Index]
  83.                     end;
  84.                     __tostring = function(self) return RealPlayer.Name end
  85.                 })
  86.             end
  87.         end
  88.         if RealGame[Index] then
  89.             local Type = type(RealGame[Index])
  90.             if Type == "function" then
  91.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  92.                     return function (self,Service)
  93.                         local FakeServices = {
  94.                             ["players"] = function()
  95.                                 return setmetatable({},{
  96.                                     __index = function (self2,Index2)
  97.                                         local RealService = RealGame:GetService(Service)
  98.                                         local Type2 = type(Index2)
  99.                                         if Type2 == "function" then
  100.                                             return function (self,...) return RealService[Index2](RealService,...)end
  101.                                         else
  102.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  103.                                             return RealService[Index2]
  104.                                         end
  105.                                     end;
  106.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  107.                                 })
  108.                             end;
  109.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  110.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  111.                             ["runservice"] = function()
  112.                                 return setmetatable({},{
  113.                                     __index = function(self2,Index2)
  114.                                         local RealService = RealGame:GetService(Service)
  115.                                         local Type2 = type(Index2)
  116.                                         if Type2 == "function" then
  117.                                             return function (self,...) return RealService[Index2](RealService,...) end
  118.                                         else
  119.                                             local RunServices = {
  120.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  121.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  122.                                             }
  123.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  124.                                             return RealService[Index2]
  125.                                         end
  126.                                     end
  127.                                 })
  128.                             end
  129.                         }
  130.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  131.                         return RealGame:GetService(Service)
  132.                     end
  133.                 end
  134.                 return function (self,...) return RealGame[Index](RealGame,...) end
  135.             else
  136.                 if game:GetService(Index) then return game:GetService(Index) end
  137.                 return RealGame[Index]
  138.             end
  139.         end
  140.         return nil
  141.     end
  142. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  143.  
  144. --darkheart script--
  145.  
  146. --ok--
  147.  
  148. plr = owner
  149. mouse = plr:GetMouse()
  150. char = plr.Character
  151. Character = char
  152. anim = char.Animate
  153. anim:Destroy()
  154. torso = char.Torso
  155. lefta = char["Left Arm"]
  156. righta = char["Right Arm"]
  157. leftl = char["Left Leg"]
  158. rightl = char["Right Leg"]
  159. Root=Character["HumanoidRootPart"]
  160. position = nil
  161. LeftArm=Character["Left Arm"]
  162. LeftLeg=Character["Left Leg"]
  163. RightArm=Character["Right Arm"]
  164. RightLeg=Character["Right Leg"]
  165. Root=Character["HumanoidRootPart"]
  166. Head=Character["Head"]
  167. Torso=Character["Torso"]
  168. Neck=Torso["Neck"]
  169. walking = false
  170. jumping = false
  171. attacking = false
  172. firsttime = false
  173. tauntdebounce = false
  174. position = nil
  175. MseGuide = true
  176. running = false
  177. settime = 0
  178. sine = 0
  179. t = 0
  180. ws = 14
  181. change = 1
  182. combo1 = true
  183. dancing = false
  184. equip = false
  185. dgs = 75
  186. combo2 = false
  187. switch1 = true
  188. switch2 = false
  189. firsttime2 = false
  190. combo3 = false
  191. RunSrv = game:GetService("RunService")
  192. removeuseless = game:GetService("Debris")
  193.  
  194. --character--
  195.  
  196. spawn(function()
  197.     while wait() do
  198.         Head.BrickColor = BrickColor.new("Really black")
  199.         RightArm.BrickColor = BrickColor.new("Really black")
  200.         LeftArm.BrickColor = BrickColor.new("Really black")
  201.         Torso.BrickColor = BrickColor.new("Really black")
  202.         RightLeg.BrickColor = BrickColor.new("Really black")
  203.         LeftLeg.BrickColor = BrickColor.new("Really black")
  204.     end
  205. end)
  206. for i,v in pairs(Character:children()) do
  207.     if v:IsA("Hat") then
  208.         v:Destroy()
  209.     end
  210. end
  211. for i,v in pairs(Character:children()) do
  212.     if v:IsA("Accessory") then
  213.         v:Destroy()
  214.     end
  215. end
  216. for i,v in pairs(Character:children()) do
  217.     if v:IsA("Hair") then
  218.         v:Destroy()
  219.     end
  220. end
  221. for i,v in pairs(Character:children()) do
  222.     if v:IsA("Shirt") then
  223.         v:Destroy()
  224.     end
  225. end
  226. for i,v in pairs(Character:children()) do
  227.     if v:IsA("Pants") then
  228.         v:Destroy()
  229.     end
  230. end
  231. for i,v in pairs(Character:children()) do
  232.     if v:IsA("Graphic Shirt") then
  233.         v:Destroy()
  234.     end
  235. end
  236. for i,v in pairs(Character:children()) do
  237.     if v:IsA("GraphicShirt") then
  238.         v:Destroy()
  239.     end
  240. end
  241.  
  242. for _,v in pairs(Character:children()) do
  243. if v:IsA("Shirt") then
  244. v.ShirtTemplate = "rbxassetid://0"
  245. elseif v:IsA("Pants") then
  246. v.PantsTemplate = "rbxassetid://0"
  247. elseif v:IsA("ShirtGraphic") then
  248. v:Remove()
  249. wait(.1)
  250. Torso.roblox:Remove()
  251. elseif v:IsA("Accessory") then
  252. v:Remove()
  253. end
  254. end
  255.  
  256. Head.face.Texture = "http://www.roblox.com/asset/?id=2994872693"
  257. --smooth--
  258.  
  259. local HEADLERP = Instance.new("ManualWeld")
  260. HEADLERP.Parent = Head
  261. HEADLERP.Part0 = Head
  262. HEADLERP.Part1 = Head
  263. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  264.  
  265. local TORSOLERP = Instance.new("ManualWeld")
  266. TORSOLERP.Parent = Root
  267. TORSOLERP.Part0 = Torso
  268. TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  269.  
  270. local ROOTLERP = Instance.new("ManualWeld")
  271. ROOTLERP.Parent = Root
  272. ROOTLERP.Part0 = Root
  273. ROOTLERP.Part1 = Torso
  274. ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  275.  
  276. local RIGHTARMLERP = Instance.new("ManualWeld")
  277. RIGHTARMLERP.Parent = RightArm
  278. RIGHTARMLERP.Part0 = RightArm
  279. RIGHTARMLERP.Part1 = Torso
  280. RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  281.  
  282. local LEFTARMLERP = Instance.new("ManualWeld")
  283. LEFTARMLERP.Parent = LeftArm
  284. LEFTARMLERP.Part0 = LeftArm
  285. LEFTARMLERP.Part1 = Torso
  286. LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  287.  
  288. local RIGHTLEGLERP = Instance.new("ManualWeld")
  289. RIGHTLEGLERP.Parent = RightLeg
  290. RIGHTLEGLERP.Part0 = RightLeg
  291. RIGHTLEGLERP.Part1 = Torso
  292. RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  293.  
  294. local LEFTLEGLERP = Instance.new("ManualWeld")
  295. LEFTLEGLERP.Parent = LeftLeg
  296. LEFTLEGLERP.Part0 = LeftLeg
  297. LEFTLEGLERP.Part1 = Torso
  298. LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  299.  
  300. local function weldBetween(a, b)
  301.     local weld = Instance.new("ManualWeld", a)
  302.     weld.Part0 = a
  303.     weld.Part1 = b
  304.     weld.C0 = a.CFrame:inverse() * b.CFrame
  305.     return weld
  306. end
  307.  
  308.  
  309. function ray(pos, dir, rang, ignoredesc)
  310.     return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
  311. end
  312.  
  313. function swait(num)
  314.     if num == 0 or num == nil then
  315.         game:service("RunService").Stepped:wait(0)
  316.     else
  317.         for i = 0, num do
  318.             game:service("RunService").Stepped:wait(0)
  319.         end
  320.     end
  321. end
  322.  
  323. hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
  324.  
  325. --attack--
  326.  
  327. mouse.Button1Down:connect(function()
  328. if attacking == false then
  329. attacking = true
  330. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0 + 0.2) * CFrame.Angles(-90,0,math.rad(0)),.6 + .2)
  331. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -3 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.3)
  332. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(31)),.3)
  333. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(10 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1)
  334. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(10 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1)
  335.  
  336. function DMG(hit)
  337.     hah = hit.Parent
  338.     hahtorso = hah.Torso
  339.     hahhead = hah.Head
  340.     haharm1 = hah["Left Arm"]
  341.     haharm2 = hah["Right Arm"]
  342.     hahleg1 = hah["Left Leg"]
  343.     hahleg2 = hah["Right Leg"]
  344.     hahtorso.Anchored = true
  345.     wait(0.5)
  346.     hahtorso.Transparency = 0.2
  347.     hahhead.Transparency = 0.2
  348.     haharm1.Transparency = 0.2
  349.     haharm2.Transparency = 0.2
  350.     hahleg1.Transparency = 0.2
  351.     hahleg2.Transparency = 0.2
  352.     wait(0.05)
  353.     hahtorso.Transparency = 0.5
  354.     hahhead.Transparency = 0.5
  355.     haharm1.Transparency = 0.5
  356.     haharm2.Transparency = 0.5
  357.     hahleg1.Transparency = 0.5
  358.     hahleg2.Transparency = 0.5
  359.     wait(0.05)
  360.     hahtorso.Transparency = 0.7
  361.     hahhead.Transparency = 0.7
  362.     haharm1.Transparency = 0.7
  363.     haharm2.Transparency = 0.7
  364.     hahleg1.Transparency = 0.7
  365.     hahleg2.Transparency = 0.7
  366.     wait(0.05)
  367.     hahtorso.Transparency = 1
  368.     hahhead.Transparency = 1
  369.     haharm1.Transparency = 1
  370.     haharm2.Transparency = 1
  371.     hahleg1.Transparency = 1
  372.     hahleg2.Transparency = 1
  373.     hahtorso:Destroy()
  374. end
  375.  
  376. lemon = Instance.new("Part")
  377. lemon.Parent = RightArm
  378. lemon.Name = "TPOSELEMONTXT"
  379. lemon.Anchored = false
  380. lemon.CanCollide = false
  381. lemon.Size = Vector3.new(2.5, 2.5, 2.5)
  382. lemon.BrickColor = BrickColor.new("Bright red")
  383. lemon.Material = "Neon"
  384. lemon.Transparency = 0.7
  385. lemon.Touched:connect(function(hit)
  386.     hah = hit.Parent
  387.     hahtorso = hah.Torso
  388.     hahhead = hah.Head
  389.     haharm1 = hah["Left Arm"]
  390.     haharm2 = hah["Right Arm"]
  391.     hahleg1 = hah["Left Leg"]
  392.     hahleg2 = hah["Right Leg"]
  393.     hahtorso.Anchored = true
  394.     wait(0.5)
  395.     hahtorso.Transparency = 0.2
  396.     hahhead.Transparency = 0.2
  397.     haharm1.Transparency = 0.2
  398.     haharm2.Transparency = 0.2
  399.     hahleg1.Transparency = 0.2
  400.     hahleg2.Transparency = 0.2
  401.     wait(0.05)
  402.     hahtorso.Transparency = 0.5
  403.     hahhead.Transparency = 0.5
  404.     haharm1.Transparency = 0.5
  405.     haharm2.Transparency = 0.5
  406.     hahleg1.Transparency = 0.5
  407.     hahleg2.Transparency = 0.5
  408.     wait(0.05)
  409.     hahtorso.Transparency = 0.7
  410.     hahhead.Transparency = 0.7
  411.     haharm1.Transparency = 0.7
  412.     haharm2.Transparency = 0.7
  413.     hahleg1.Transparency = 0.7
  414.     hahleg2.Transparency = 0.7
  415.     wait(0.05)
  416.     hahtorso.Transparency = 1
  417.     hahhead.Transparency = 1
  418.     haharm1.Transparency = 1
  419.     haharm2.Transparency = 1
  420.     hahleg1.Transparency = 1
  421.     hahleg2.Transparency = 1
  422.     hahtorso:Destroy()
  423. end)
  424. wlemon = Instance.new("Weld")
  425. wlemon.Parent = lemon
  426. wlemon.Part0 = lemon
  427. wlemon.Part1 = RightArm
  428. wlemon.C0 = CFrame.new(0, 0.85, 0)
  429. mlemon = Instance.new("SpecialMesh")
  430. mlemon.MeshType = "Sphere"
  431. wait(0.125)
  432. lemon.Transparency = 0.5
  433. wait(0.125)
  434. lemon.Transparency = 0.2
  435. wait(0.3)
  436. attacking = false
  437. wlemon:Destroy()
  438. mlemon:Destroy()
  439. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 3 + 0.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.3)
  440. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  441. lemon.Transparency = 0.5
  442. wait(0.001)
  443. lemon.Transparency = 0.7
  444. wait(0.001)
  445. lemon:Destroy()
  446. swait()
  447. end
  448. end)
  449.  
  450. --idk--
  451.  
  452. coil = Instance.new("Part")
  453. coil.Parent = torso
  454. coil.Transparency = 1
  455. coil.Position = torso.Position
  456. coil.CanCollide = false
  457. coil.BrickColor = BrickColor.new("Royal Purple")
  458. mcoil = Instance.new("SpecialMesh")
  459. mcoil.Parent = coil
  460. mcoil.MeshId = "rbxassetid://16606212"
  461. mcoil.Scale = Vector3.new(5, 5, 0.4)
  462. wcoil = Instance.new("Weld")
  463. wcoil.Parent = coil
  464. wcoil.Part0 = coil
  465. wcoil.Part1 = torso
  466. wcoil.C0 = CFrame.new(0, 0, 1.5)
  467. wcoil.C1 = CFrame.Angles(520, 0, 0)
  468.  
  469. --anim--
  470.  
  471. checks1 = coroutine.wrap(function() -------Checks
  472. while true do
  473. hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
  474. if Root.Velocity.y > 1 then
  475. position = "Jump"
  476. elseif Root.Velocity.y < -1 then
  477. position = "Falling"
  478. elseif Root.Velocity.Magnitude < 2 then
  479. position = "Idle"
  480. elseif Root.Velocity.Magnitude > 2 then
  481. position = "Walking"
  482. elseif Root.Velocity.Magnitude > 20 then
  483. position = "Running"
  484. else
  485. end
  486. wait()
  487. end
  488. end)
  489. checks1()
  490.  
  491. local anims = coroutine.wrap(function()
  492. while true do
  493. settime = 0.05
  494. sine = sine + change
  495. if position == "Jump" and attacking == false then
  496. change = 1
  497. spin = false
  498. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  499. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
  500. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
  501. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  502. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 3 + 0.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  503. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2)
  504. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
  505. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
  506. elseif position == "Falling" and attacking == false then
  507. change = 1
  508. spin = false
  509. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  510. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 3 + 0.1, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  511. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  512. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  513. LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
  514. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
  515. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
  516. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
  517. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
  518. elseif position == "Walking" and attacking == false and running == false then
  519. change = 1.2
  520. walking = true
  521. spin = false
  522. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  523. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
  524. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
  525. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 3 + 0.1 * 0.6*-math.sin(sine/5.5), 0) * CFrame.Angles(math.rad(0), math.rad(0* -math.sin(sine/11)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(0 * math.cos(sine/0))), 0.3)
  526. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(70 * -math.sin(sine/5000)), math.rad(0), math.rad(-10)), 0.1)
  527. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(70 * -math.sin(sine/5000)), math.rad(0), math.rad(10)), 0.1)
  528. elseif position == "Idle" and attacking == false and running == false then
  529. change = .5
  530. spin = true
  531. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  532. ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 3 + 0.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.3)
  533. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-75)),.3)
  534. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(75)),.3)
  535. RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1)
  536. LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1)
  537. elseif position == "Running" and attacking == false then
  538. change = 1
  539. for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
  540. RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
  541. 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)
  542. LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  543. 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)
  544. RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
  545. 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)
  546. LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
  547. 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)
  548. end
  549. swait()
  550. end
  551. end)
  552. anims()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement