Advertisement
HenloMyDude

djohn

Jul 9th, 2020
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.01 KB | None | 0 0
  1.  
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end;if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end
  5.  
  6. plr = owner
  7. char = plr.Character
  8. ra = char["Right Arm"]
  9. la = char["Left Arm"]
  10. hed = char.Head
  11. root = char.HumanoidRootPart
  12. hum = char.Humanoid
  13. dancin = false
  14.  
  15. clerp = function(toclerp, cf, number)
  16. local joint = toclerp
  17. joint.C0 = joint.C0:Lerp(cf, number)
  18. end
  19.  
  20. clerp2 = function(toclerp, cf)
  21. local joint = toclerp
  22. joint.C0 = cf
  23. end
  24.  
  25. clerp3 = function(toclerp, cf, number)
  26. local joint = toclerp
  27. joint.C1 = joint.C1:Lerp(cf, number)
  28. end
  29.  
  30. Swait,swait = function(number)
  31. if number == 0 or number == nil then
  32. game:GetService("RunService").Heartbeat:Wait()
  33. else
  34. for i = 1,number do
  35. game:GetService("RunService").Heartbeat:Wait()
  36. end
  37. end
  38. end
  39.  
  40. ezweld = function(p, a, b, cf)
  41. local weld = Instance.new("Weld",p)
  42. weld.Part0 = a
  43. weld.Part1 = b
  44. weld.C0 = cf
  45. return weld
  46. end
  47.  
  48. ezmot = function(p, a, b, cf)
  49. local weld = Instance.new("Motor6D",p)
  50. weld.Part0 = a
  51. weld.Part1 = b
  52. weld.C0 = cf
  53. return weld
  54. end
  55.  
  56. NewSound = function(p, id, pit, vol, loop)
  57. local Sound = Instance.new("Sound",p)
  58. Sound.Pitch = pit
  59. Sound.Volume = vol
  60. Sound.SoundId = "rbxassetid://" ..id
  61. Sound.Looped = loop
  62. Sound:Play()
  63. return Sound
  64. end
  65.  
  66. IT = Instance.new
  67. Rad = math.rad
  68. Cos = math.cos
  69. Sin = math.sin
  70. BrickC = BrickColor.new
  71. C3 = Color3.new
  72. VT = Vector3.new
  73.  
  74. anim = "Idle"
  75. attack = false
  76. local RS = char.Torso["Right Shoulder"]
  77. local LS = char.Torso["Left Shoulder"]
  78. local RH = char.Torso["Right Hip"]
  79. local LH = char.Torso["Left Hip"]
  80. local neck = char.Torso["Neck"]
  81. local root = char.HumanoidRootPart
  82. local rootj = root.RootJoint
  83. local sine = 0
  84. local RSnor = RS.C0
  85. local LSnor = LS.C0
  86. local RHnor = RH.C0
  87. local LHnor = LH.C0
  88. local RSnor2 = RS.C1
  89. local LSnor2 = LS.C1
  90. local RHnor2 = RH.C1
  91. local LHnor2 = LH.C1
  92. local rootjnor = rootj.C0
  93. local necknor = neck.C0
  94. local tors = char.Torso
  95. hum.Animator:remove()
  96. mouse = plr:GetMouse()
  97. hold = false
  98. Debris = game:GetService("Debris")
  99.  
  100. sped = 16
  101. keyhold = false
  102. spino = 0
  103. hito = true
  104.  
  105. function RayCast(Position, Direction, Range, Ignore)
  106. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  107. end
  108.  
  109. sizo = 1
  110.  
  111. for i,v in pairs (char:children()) do
  112. if v:IsA("BasePart") then
  113. if v.Name == "Head" then v.Size = Vector3.new(1, 1, 1) end
  114. local bm = Instance.new("BlockMesh", v)
  115. elseif v:IsA("Hat") or v:IsA("Accessory") then
  116. v:Destroy()
  117. end
  118. end
  119.  
  120. local BC = char:FindFirstChildWhichIsA("BodyColors")
  121. Substitute = BC.TorsoColor
  122. local C = BC.HeadColor3
  123. local Color = C.r*0.299+C.g*0.587+C.b*0.114
  124.  
  125. b = "DeltaJohn!"
  126. if Color < 0.2 then
  127. Brightness = BrickColor.new("Black")
  128. b = "Don!"
  129. elseif Color < 0.4 then
  130. Brightness = BrickColor.new("Dark stone grey")
  131. b = "Zon!"
  132. elseif Color < 0.65 then
  133. Brightness = BrickColor.new("Medium stone grey")
  134. b = "John!"
  135. elseif Color < 0.85 then
  136. Brightness = BrickColor.new("Mid gray")
  137. b = "Ron!"
  138. else
  139. Brightness = BrickColor.new("White")
  140. end
  141.  
  142. local Substitute = BrickColor.new("Really black")
  143. local Brightness = BrickColor.new("Medium stone grey")
  144.  
  145. local Head = hed
  146. Head.Size = Vector3.new(1,1,1)
  147. Head.Anchored = false
  148. Head.Locked = true
  149. Head.Material = Enum.Material.Metal
  150. local Torso = char["Torso"]
  151. Torso.Size = Vector3.new(2,2,1)
  152. Torso.Anchored = false
  153. Torso.Locked = true
  154. Torso.Material = Enum.Material.DiamondPlate
  155. local LeftArm = char["Left Arm"]
  156. LeftArm.Size = Vector3.new(1,2,1)
  157. LeftArm.Anchored = false
  158. LeftArm.Locked = true
  159. LeftArm.Material = Enum.Material.Metal
  160. LeftArm.CanCollide = false
  161. local RightArm = char["Right Arm"]
  162. RightArm.Size = Vector3.new(1,2,1)
  163. RightArm.Anchored = false
  164. RightArm.Locked = true
  165. RightArm.Material = Enum.Material.Metal
  166. RightArm.CanCollide = false
  167. local LeftLeg = char["Left Leg"]
  168. LeftLeg.Size = Vector3.new(1,2,1)
  169. LeftLeg.Anchored = false
  170. LeftLeg.Locked = true
  171. LeftLeg.Material = Enum.Material.DiamondPlate
  172. local RightLeg = char["Right Leg"]
  173. RightLeg.Size = Vector3.new(1,2,1)
  174. RightLeg.Anchored = false
  175. RightLeg.Locked = true
  176. RightLeg.Material = Enum.Material.DiamondPlate
  177. hed.face:Destroy()
  178. local Left = Instance.new("Part",char)
  179. Left.Name = "L"
  180. Left.Size = Vector3.new(0.125,0.375,0.05)
  181. Left.Anchored = false
  182. Left.Locked = true
  183. Left.CanCollide = false
  184. Left.Transparency = 1
  185. local LD = Instance.new("Decal",Left)
  186. LD.Texture = "rbxasset://textures/CollisionGroupsEditor/unchecked.png"
  187. LD.Color3 = Color3.new(0, 0, 0)
  188. local w = ezweld(char, Left, hed, CFrame.new(-0.2, -0.1, 0.5001))
  189. local Right = Instance.new("Part",char)
  190. Right.Name = "R"
  191. Right.Size = Vector3.new(0.125,0.375,0.05)
  192. Right.Anchored = false
  193. Right.Locked = true
  194. Right.CanCollide = false
  195. Right.Transparency = 1
  196. local RD = Instance.new("Decal",Right)
  197. RD.Texture = "rbxasset://textures/CollisionGroupsEditor/unchecked.png"
  198. RD.Color3 = Color3.new(0, 0, 0)
  199. local w = ezweld(char, Right, hed, CFrame.new(0.2, -0.1, 0.5001))
  200. HP = 5
  201. trs = root
  202.  
  203. spd = 0.475
  204.  
  205. kirb = root
  206.  
  207. reeb = false
  208.  
  209. coroutine.wrap(function()
  210. while anim == "Walk" do trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection) end
  211. end)()
  212.  
  213. wep = false
  214.  
  215. local TorsoE = Instance.new("Part",nil)
  216. TorsoE.Name = "Handle"
  217. TorsoE.Size = Vector3.new(0.2,1,4)
  218. TorsoE.BrickColor = BrickColor.new("Medium stone grey")
  219. TorsoE.Material = Enum.Material.Metal
  220. TorsoE.Locked = true
  221. TorsoE.CanCollide = false
  222. TorsoE.CustomPhysicalProperties = PhysicalProperties.new(Enum.Material.Metal)
  223. local PointLight = Instance.new("PointLight",TorsoE)
  224. PointLight.Range = 21
  225. PointLight.Shadows = true
  226. PointLight.Brightness = 5
  227. local w = ezweld(char, TorsoE, ra, CFrame.new(0, 0.85, 1.65) * CFrame.Angles(Rad(25), 0, 0))
  228.  
  229. local SoundA = Instance.new("Sound",TorsoE)
  230. SoundA.SoundId = "rbxasset://sounds/swordslash.wav"
  231. SoundA.Volume = 1.2
  232. local SoundB = Instance.new("Sound",TorsoE)
  233. SoundB.SoundId = "rbxasset://sounds/swordlunge.wav"
  234. SoundB.Volume = 1.2
  235. local SoundC = Instance.new("Sound",TorsoE)
  236. SoundC.SoundId = "rbxasset://sounds/flashbulb.wav"
  237. SoundC.Volume = 1.2
  238. local SoundD = Instance.new("Sound",TorsoE)
  239. SoundD.SoundId = "rbxasset://sounds/uuhhh.mp3"
  240. SoundD.Volume = 1.2
  241. local SoundE = Instance.new("Sound",TorsoE)
  242. SoundE.SoundId = "rbxasset://sounds/kerplunk.wav"
  243. SoundE.Volume = 1.2
  244. local SoundF = Instance.new("Sound",TorsoE)
  245. SoundF.SoundId = "rbxasset://sounds/bass.mp3"
  246. SoundF.Volume = 1.2
  247. local A = Instance.new("Attachment",TorsoE)
  248. local Particles = Instance.new("ParticleEmitter",A)
  249. Particles.LightEmission = 1
  250. Particles.LightInfluence = 0.2
  251. Particles.Drag = 16
  252. Particles.Enabled = false
  253. Particles.Lifetime = NumberRange.new(0.1,0.4)
  254. Particles.Rate = 100
  255. Particles.Rotation = NumberRange.new(-360,360)
  256. Particles.SpreadAngle = Vector2.new(-360,360)
  257. Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
  258. Particles.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  259. Particles.Speed = NumberRange.new(70,70)
  260. Particles.Size = NumberSequence.new(0.7,0.7)
  261. local BA0 = Instance.new("Attachment",TorsoE)
  262. BA0.Position = Vector3.new(0,0.5,2)
  263. local BA1 = Instance.new("Attachment",TorsoE)
  264. BA1.Position = Vector3.new(0,0.5,-2)
  265. local ShipTrail = Instance.new("Trail",script)
  266. ShipTrail.Color = ColorSequence.new(TorsoE.Color)
  267. ShipTrail.Transparency = NumberSequence.new(0,1)
  268. ShipTrail.MinLength = 0.02
  269. ShipTrail.Lifetime = 0.3
  270. ShipTrail.Attachment0 = BA0
  271. ShipTrail.Attachment1 = BA1
  272.  
  273. function copyw(m)
  274. local mem = ezmot(script, m.Part0, m.Part1, m.C0)
  275. mem.C1 = m.C1
  276. mem.Name = m.Name
  277. return mem
  278. end
  279.  
  280. function stopanims()
  281. for i,v in pairs (script:children()) do if v:IsA("Motor6D") then v:Destroy() end end
  282. local res = RS
  283. RS = copyw(res)
  284. local les = LS
  285. LS = copyw(les)
  286. local reh = RH
  287. RH = copyw(reh)
  288. local leh = LH
  289. LH = copyw(leh)
  290. local rej = rootj
  291. rootj = copyw(rej)
  292. local nec = neck
  293. neck = copyw(nec)
  294. --[[
  295. res:Destroy()
  296. les:Destroy()
  297. reh:Destroy()
  298. leh:Destroy()
  299. rej:Destroy()
  300. nec:Destroy()
  301. ]]
  302. end
  303.  
  304. function equip()
  305. attack = true
  306. wep = false
  307. TorsoE.Parent = nil
  308. stopanims()
  309. for i = 1,35 do
  310. Swait()
  311. stopanims()
  312. attack = true
  313. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(Rad(0), Rad(0), Rad(-25)), 0.99)
  314. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99)
  315. clerp(RH, RHnor * CFrame.new(0.165, 0.25, 0.06) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.99)
  316. clerp(LH, LHnor * CFrame.new(-0.165, 0.25, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  317. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-45), Rad(9), Rad(10)), 0.99)
  318. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  319. end
  320. stopanims()
  321. TorsoE.Parent = char
  322. wep = true
  323. attack = false
  324. end
  325.  
  326. function unequip()
  327. attack = true
  328. wep = true
  329. TorsoE.Parent = char
  330. stopanims()
  331. for i = 1,35 do
  332. Swait()
  333. stopanims()
  334. attack = true
  335. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.25) * CFrame.Angles(Rad(0), Rad(0), Rad(-25)), 0.99)
  336. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99)
  337. clerp(RH, RHnor * CFrame.new(0.165, 0.25, 0.06) * CFrame.Angles(Rad(-2), Rad(-8), Rad(0)), 0.99)
  338. clerp(LH, LHnor * CFrame.new(-0.165, 0.25, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  339. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(45), Rad(0), Rad(-35)), 0.99)
  340. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  341. end
  342. stopanims()
  343. TorsoE.Parent = nil
  344. wep = false
  345. attack = false
  346. end
  347.  
  348. mouse.KeyDown:connect(function(key)
  349. if key == "c" and attack == false then
  350. if wep == false then
  351. equip()
  352. else
  353. unequip()
  354. end
  355. end
  356. end)
  357.  
  358. function slash()
  359. if wep == true then
  360. attack = true
  361. stopanims()
  362. for i = 1,21 do
  363. Swait()
  364. stopanims()
  365. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  366. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  367. clerp(RH, RHnor * CFrame.new(0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  368. clerp(LH, LHnor * CFrame.new(-0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  369. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(15)), 0.99)
  370. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  371. end
  372. stopanims()
  373. attack = false
  374. end
  375. end
  376.  
  377. mouse.Button1Down:connect(function()
  378. if attack then return end
  379. slash()
  380. end)
  381.  
  382. while true do
  383. wait()
  384. stopanims()
  385. ShipTrail.Color = ColorSequence.new(TorsoE.Color)
  386. tors.Anchored = false
  387. local C = char:GetChildren()
  388. for i = 1,#C do
  389. if C[i]:IsA("BasePart") then
  390. if HP == 5 then
  391. C[i].BrickColor = BrickColor.new("Toothpaste")
  392. elseif HP == 4 then
  393. C[i].BrickColor = BrickColor.new("Lime green")
  394. elseif HP == 3 then
  395. C[i].BrickColor = BrickColor.new("New Yeller")
  396. elseif HP == 2 then
  397. C[i].BrickColor = BrickColor.new("Hot pink")
  398. elseif HP == 1 then
  399. C[i].BrickColor = BrickColor.new("Really red")
  400. else
  401. C[i].BrickColor = BrickColor.new("Really blue")
  402. end
  403. end
  404. end
  405. Torso.BrickColor = Substitute
  406. Head.BrickColor = Brightness
  407. LeftArm.BrickColor = Brightness
  408. RightArm.BrickColor = Brightness
  409. sine = sine + 1
  410. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  411. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  412. local WALKSPEEDVALUE = 8 / (sped / 16)
  413. local mv = hum.MoveDirection
  414. torsverticalvel = root.Velocity.y
  415. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  416. if TORSOVELOCITY < 0.35 and hitfloor ~= nil then
  417. anim = "Idle"
  418. if attack == false and wep == false then
  419. stopanims()
  420. if attack == false and anim == "Idle" then
  421. --[[
  422. for i = 1,27 do
  423. if TORSOVELOCITY < 1 then
  424. Swait()
  425. else
  426. break
  427. end
  428. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.1) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  429. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  430. clerp(RH, RHnor * CFrame.new(0.25, 0.1, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(2)), 0.99)
  431. clerp(LH, LHnor * CFrame.new(-0.15, 0.1, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(15)), 0.99)
  432. clerp(RS, RSnor * CFrame.new(0, -0.025, 0) * CFrame.Angles(Rad(-4), Rad(0), Rad(-3)), 0.99)
  433. clerp(LS, LSnor * CFrame.new(0, -0.025, 0) * CFrame.Angles(Rad(-4), Rad(0), Rad(3)), 0.99)
  434. end
  435. end
  436. if attack == false and anim == "Idle" then
  437. for i = 1,27 do
  438. if TORSOVELOCITY < 1 then
  439. Swait()
  440. else
  441. break
  442. end
  443. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.165) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  444. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  445. clerp(RH, RHnor * CFrame.new(0.21, 0.165, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  446. clerp(LH, LHnor * CFrame.new(-0.075, 0.165, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  447. clerp(RS, RSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.99)
  448. clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.99)
  449. end
  450. end
  451. if attack == false and anim == "Idle" then
  452. for i = 1,27 do
  453. if TORSOVELOCITY < 1 then
  454. Swait()
  455. else
  456. break
  457. end
  458. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.1) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  459. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  460. clerp(RH, RHnor * CFrame.new(0.21, 0.1, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(1)), 0.99)
  461. clerp(LH, LHnor * CFrame.new(-0.075, 0.1, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(6)), 0.99)
  462. clerp(RS, RSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(3)), 0.99)
  463. clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(-3)), 0.99)
  464. end
  465. end
  466. if attack == false and anim == "Idle" then
  467. for i = 1,27 do
  468. if TORSOVELOCITY < 1 then
  469. Swait()
  470. else
  471. break
  472. end
  473. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.165) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  474. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  475. clerp(RH, RHnor * CFrame.new(0.21, 0.165, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  476. clerp(LH, LHnor * CFrame.new(-0.075, 0.15, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  477. clerp(RS, RSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.99)
  478. clerp(LS, LSnor * CFrame.new(0, -0.05, 0) * CFrame.Angles(Rad(-7), Rad(0), Rad(0)), 0.99)
  479. end
  480. end
  481. ]]
  482. for i = 1,8 do
  483. if TORSOVELOCITY < 0.35 then
  484. Swait()
  485. else
  486. break
  487. end
  488. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.025) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  489. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  490. clerp(RH, RHnor * CFrame.new(0.025, 0.025, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  491. clerp(LH, LHnor * CFrame.new(-0.025, 0.025, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  492. clerp(RS, RSnor * CFrame.new(0, 0.015, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  493. clerp(LS, LSnor * CFrame.new(0, 0.015, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  494. end
  495. for i = 1,8 do
  496. if TORSOVELOCITY < 0.35 then
  497. Swait()
  498. else
  499. break
  500. end
  501. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  502. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  503. clerp(RH, RHnor * CFrame.new(0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  504. clerp(LH, LHnor * CFrame.new(-0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  505. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  506. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  507. end
  508. end
  509. end
  510. if attack == false and wep == true then
  511. if attack == false and anim == "Idle" then
  512. for i = 1,8 do
  513. if TORSOVELOCITY < 0.35 then
  514. Swait()
  515. else
  516. break
  517. end
  518. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.025) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  519. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  520. clerp(RH, RHnor * CFrame.new(0.025, 0.025, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  521. clerp(LH, LHnor * CFrame.new(-0.025, 0.025, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  522. clerp(RS, RSnor * CFrame.new(0, 0.015, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(76)), 0.99)
  523. clerp(LS, LSnor * CFrame.new(0, 0.015, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  524. end
  525. for i = 1,8 do
  526. if TORSOVELOCITY < 0.35 then
  527. Swait()
  528. else
  529. break
  530. end
  531. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  532. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  533. clerp(RH, RHnor * CFrame.new(0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  534. clerp(LH, LHnor * CFrame.new(-0.025, 0, 0) * CFrame.Angles(Rad(-2), Rad(0), Rad(0)), 0.99)
  535. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(76)), 0.99)
  536. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-1), Rad(0), Rad(0)), 0.99)
  537. end
  538. end
  539. end
  540. elseif TORSOVELOCITY > 0.35 and hitfloor ~= nil then
  541. anim = "Walk"
  542. if attack == false then
  543. stopanims()
  544. if attack == false and anim == "Walk" then
  545. for i = 1,10 do
  546. if TORSOVELOCITY > 0.35 then
  547. Swait()
  548. else
  549. break
  550. end
  551. if reeb == true then
  552. trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection)
  553. end
  554. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  555. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  556. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.99)
  557. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35)), 0.99)
  558. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(35)), 0.99)
  559. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(35)), 0.99)
  560. end
  561. end
  562. --[[
  563. if attack == false and anim == "Walk" then
  564. for i = 1,5 do
  565. Swait()
  566. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.025) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  567. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  568. clerp(RH, RHnor * CFrame.new(0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35/2)), 0.99)
  569. clerp(LH, LHnor * CFrame.new(-0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-35/2)), 0.99)
  570. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(35/2)), 0.99)
  571. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(8), Rad(35/2)), 0.99)
  572. end
  573. end
  574. ]]
  575. if attack == false and anim == "Walk" then
  576. for i = 1,10 do
  577. if TORSOVELOCITY > 0.35 then
  578. Swait()
  579. else
  580. break
  581. end
  582. if reeb == true then
  583. --trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection)
  584. end
  585. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.05) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  586. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(1), Rad(0), Rad(0)), 0.99)
  587. clerp(RH, RHnor * CFrame.new(0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  588. clerp(LH, LHnor * CFrame.new(-0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  589. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  590. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  591. end
  592. end
  593. if attack == false and anim == "Walk" then
  594. for i = 1,10 do
  595. if TORSOVELOCITY > 0.35 then
  596. Swait()
  597. else
  598. break
  599. end
  600. if reeb == true then
  601. --trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection)
  602. end
  603. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.025) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  604. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  605. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.99)
  606. clerp(LH, LHnor * CFrame.new(0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35)), 0.99)
  607. clerp(RS, RSnor * CFrame.new(-0.025, 0.025, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35)), 0.99)
  608. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35)), 0.99)
  609. end
  610. end
  611. --[[
  612. if attack == false and anim == "Walk" then
  613. for i = 1,5 do
  614. Swait()
  615. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  616. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  617. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35/2)), 0.99)
  618. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(35/2)), 0.99)
  619. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35/2)), 0.99)
  620. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-8), Rad(-35/2)), 0.99)
  621. end
  622. end
  623. ]]
  624. if attack == false and anim == "Walk" then
  625. for i = 1,5 do
  626. if TORSOVELOCITY > 0.35 then
  627. Swait()
  628. else
  629. break
  630. end
  631. clerp(rootj, rootjnor * CFrame.new(0, 0, -0.05) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  632. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(1), Rad(0), Rad(0)), 0.99)
  633. clerp(RH, RHnor * CFrame.new(0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  634. clerp(LH, LHnor * CFrame.new(-0.05, 0.05, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  635. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  636. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  637. end
  638. end
  639. end
  640. elseif torsverticalvel > 0.5 and hitfloor == nil then
  641. anim = "Jump"
  642. if attack == false then
  643. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  644. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  645. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99)
  646. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99)
  647. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(172)), 0.99)
  648. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99)
  649. end
  650. elseif torsverticalvel < 0.5 and hitfloor == nil then
  651. anim = "Fall"
  652. if attack == false then
  653. clerp(rootj, rootjnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  654. clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.99)
  655. clerp(RH, RHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99)
  656. clerp(LH, LHnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(45)), 0.99)
  657. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(172)), 0.99)
  658. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(25)), 0.99)
  659. end
  660. end
  661. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement