Advertisement
HenloMyDude

working on

Dec 12th, 2019
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.85 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("hi")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"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("UserInput_Event")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
  6.  
  7. plr = owner
  8. char = plr.Character
  9. ra = char["Right Arm"]
  10. la = char["Left Arm"]
  11. hed = char.Head
  12. root = char.HumanoidRootPart
  13. hum = char.Humanoid
  14. dancin = false
  15.  
  16. clerp = function(toclerp, cf, number)
  17. local joint = toclerp
  18. joint.C0 = joint.C0:Lerp(cf, number)
  19. end
  20.  
  21. clerp2 = function(toclerp, cf)
  22. local joint = toclerp
  23. joint.C0 = cf
  24. end
  25.  
  26. clerp3 = function(toclerp, cf, number)
  27. local joint = toclerp
  28. joint.C1 = joint.C1:Lerp(cf, number)
  29. end
  30.  
  31. Swait,swait = function(number)
  32. if number == 0 or number == nil then
  33. game:GetService("RunService").Heartbeat:Wait()
  34. else
  35. for i = 1,number do
  36. game:GetService("RunService").Heartbeat:Wait()
  37. end
  38. end
  39. end
  40.  
  41. ezweld = function(p, a, b, cf)
  42. local weld = Instance.new("Weld",p)
  43. weld.Part0 = a
  44. weld.Part1 = b
  45. weld.C0 = cf
  46. return weld
  47. end
  48.  
  49. NewSound = function(p, id, pit, vol, loop)
  50. local Sound = Instance.new("Sound",p)
  51. Sound.Pitch = pit
  52. Sound.Volume = vol
  53. Sound.SoundId = "rbxassetid://" ..id
  54. Sound.Looped = loop
  55. Sound:Play()
  56. return Sound
  57. end
  58.  
  59. IT = Instance.new
  60. Rad = math.rad
  61. Cos = math.cos
  62. Sin = math.sin
  63. BrickC = BrickColor.new
  64. C3 = Color3.new
  65. VT = Vector3.new
  66.  
  67. anim = "Idle"
  68. attack = false
  69. local RS = char.Torso["Right Shoulder"]
  70. local LS = char.Torso["Left Shoulder"]
  71. local RH = char.Torso["Right Hip"]
  72. local LH = char.Torso["Left Hip"]
  73. local neck = char.Torso["Neck"]
  74. local anim = "Idle"
  75. local animate = char.Animate
  76. local root = char.HumanoidRootPart
  77. local rootj = root.RootJoint
  78. local timepos = 0
  79. local sine = 0
  80. local RSnor = RS.C0
  81. local LSnor = LS.C0
  82. local RHnor = RH.C0
  83. local LHnor = LH.C0
  84. local RSnor2 = RS.C1
  85. local LSnor2 = LS.C1
  86. local RHnor2 = RH.C1
  87. local LHnor2 = LH.C1
  88. local rootjnor = rootj.C0
  89. local necknor = neck.C0
  90. local tors = char.Torso
  91. hum.Animator:remove()
  92. mouse = plr:GetMouse()
  93. hold = false
  94. Debris = game:GetService("Debris")
  95.  
  96. sped = 16
  97.  
  98. local part = Instance.new("Part",char)
  99. part.Size = Vector3.new(1, 4, 1)
  100. part.CanCollide = false
  101. part.Color = Color3.new(0.85, 0, 0)
  102. local mesh = Instance.new("SpecialMesh",part)
  103. mesh.MeshId = "rbxassetid://305826272"
  104. mesh.TextureId = "rbxassetid://430724069"
  105. mesh.VertexColor = Vector3.new(1, 0, 0)
  106. mesh.Scale = Vector3.new(1.5, 1.5, 1.5)
  107. local at1 = Instance.new("Attachment",part)
  108. at1.Position = Vector3.new(0.5, -part.Size.y / 2, 0)
  109. local at2 = Instance.new("Attachment",part)
  110. at2.Position = Vector3.new(-0.5, part.Size.y / 2, 0)
  111. local trail = Instance.new("Trail",part)
  112. trail.Attachment0 = at1
  113. trail.Attachment1 = at2
  114. trail.Texture = "rbxassetid://1978704853"
  115. trail.Lifetime = 0.53
  116. trail.TextureLength = 0.825
  117. trail.Color = ColorSequence.new(part.Color)
  118. local weld = ezweld(char, part, ra, CFrame.new(0, -1, ra.Size.y / 1.5) * CFrame.Angles(Rad(90), 0, 0))
  119.  
  120. function RayCast(Position, Direction, Range, Ignore)
  121. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  122. end
  123.  
  124. if plr.Name == "Tennozene" or plr.Name == "DIVCORE" then
  125. local s = Instance.new("Sound",hed)
  126. s.SoundId = "rbxassetid://131490087"
  127. s.Volume = 10
  128. s.Looped = true
  129. s:Play()
  130. for i,v in pairs (plr.Backpack:children()) do
  131. if v:IsA("Tool") then
  132. v:remove()
  133. end
  134. end
  135. wait(2)
  136. local sphere = Instance.new("Part",workspace)
  137. sphere.Size = Vector3.new(1, 1, 1)
  138. sphere.Shape = "Ball"
  139. sphere.Transparency = 0.5
  140. sphere.Position = tors.Position
  141. sphere.BrickColor = BrickColor.new("Really red")
  142. sphere.CanCollide = false
  143. sphere.Anchored = true
  144. Instance.new("ForceField",char).Visible = false
  145. sphere.Touched:connect(function()
  146. local ex = Instance.new("Explosion",workspace)
  147. ex.Position = sphere.Position
  148. ex.BlastRadius = 10000
  149. end)
  150. while true do
  151. Swait()
  152. sphere.Size = sphere.Size + Vector3.new(5, 5, 5)
  153. end
  154. end
  155.  
  156. fx = true
  157.  
  158. plr.Chatted:connect(function(msg)
  159. if msg == "/effects" then
  160. if fx then
  161. fx = false
  162. trail.Enabled = false
  163. else
  164. fx = true
  165. trail.Enabled = true
  166. end
  167. end
  168. end)
  169.  
  170. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  171. local NEWPART = IT("Part")
  172. NEWPART.formFactor = FORMFACTOR
  173. NEWPART.Reflectance = REFLECTANCE
  174. NEWPART.Transparency = TRANSPARENCY
  175. NEWPART.CanCollide = false
  176. NEWPART.Locked = true
  177. NEWPART.Anchored = true
  178. if ANCHOR == false then
  179. NEWPART.Anchored = false
  180. end
  181. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  182. NEWPART.Name = NAME
  183. NEWPART.Size = SIZE
  184. NEWPART.Position = root.Position
  185. NEWPART.Material = MATERIAL
  186. NEWPART:BreakJoints()
  187. NEWPART.Parent = PARENT
  188. return NEWPART
  189. end
  190.  
  191. function WeldParts(A,B)
  192. local WLD = IT("ManualWeld")
  193. WLD.Part0 = A
  194. WLD.Part1 = B
  195. WLD.C1 = B.CFrame:inverse() * A.CFrame
  196. WLD.Parent = A
  197. return WLD
  198. end
  199.  
  200. for i = 1, 15 do
  201. local face = CreatePart(3, char, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  202. face.Color = C3(0,0,0)
  203. hed:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = face
  204. face.CFrame = hed.CFrame*CFrame.new(0,0.3-(i-1)/35,0)
  205. WeldParts(hed,face)
  206. end
  207.  
  208. for i = 1,50 do
  209. Swait()
  210. sped = 0
  211. hum.JumpPower = 56
  212. hum.WalkSpeed = sped
  213. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / 22)), 0.3)
  214. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0 + 0 * Cos(sine / 15))), 0.3)
  215. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.05 * Cos(sine / 22), 0), 0.3)
  216. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), 0) * CFrame.new(0, -0.05 * Cos(sine / 22), 0), 0.3)
  217. clerp(RS, RSnor * CFrame.new(0, -0.5, 0.25) * CFrame.Angles(Rad(-50), Rad(15), Rad(-35)), 0.3)
  218. clerp(LS, LSnor * CFrame.new(0.25, 0.25, -0.25) * CFrame.Angles(Rad(45), 0, Rad(45)), 0.3)
  219. end
  220. sped = 25
  221.  
  222. function blockparticle(amount, size, material, color, vel, lifetime, cf)
  223. for i = 0,amount do
  224. local part = Instance.new("Part",workspace)
  225. part.Size = Vector3.new(size, size, size)
  226. part.Material = material
  227. part.CFrame = cf
  228. part.Color = color
  229. local v = math.random(-vel, vel)
  230. part.Velocity = Vector3.new(v, v, v)
  231. Debris:AddItem(part, lifetime)
  232. end
  233. end
  234.  
  235. vwall = false
  236.  
  237. movelegs = true
  238.  
  239. function vrun()
  240. movelegs = false
  241. local ray = Ray.new(
  242. root.CFrame.p, root.CFrame.lookVector *2.5
  243. )
  244. local hit, position, normal = workspace:FindPartOnRay(ray, char)
  245. if ray and hit then
  246. vwall = true
  247. attack = true
  248. local bv = Instance.new("BodyVelocity",root)
  249. bv.MaxForce = Vector3.new(0, math.huge, 0)
  250. bv.Velocity = Vector3.new(0, 25, 0)
  251. repeat
  252. Swait()
  253. ray = Ray.new(
  254. root.CFrame.p, root.CFrame.lookVector *9.5
  255. )
  256. hit, position, normal = workspace:FindPartOnRay(ray, char)
  257. if ray and hit then
  258. local ea = 11
  259. clerp(rootj, rootjnor * CFrame.new(0, 1 + 0.15 * Cos(sine / (ea / 4)), 0) * CFrame.Angles(Rad(-90), 0, 0), 0.3)
  260. clerp(neck, necknor * CFrame.Angles(Rad(0), 0, Rad(0 + 1 * Cos(sine / 15))), 0.3)
  261. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(80 * Sin(sine / (ea / 2)))) * CFrame.new(0.25 * Sin(sine / (ea / 2)), 0 + 0.25 * Sin(sine / (ea / 2)), 0), 0.3)
  262. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(80 * Sin(sine / (ea / 2)))) * CFrame.new(0.25 * Sin(sine / (ea / 2)), 0 + 0.25 * Sin(sine / (ea / 2)), 0), 0.3)
  263. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(15 + 5 * Sin(sine / 22)), Rad(-90 - 5 * Sin(sine / 7))), 0.3)
  264. clerp(LS, LSnor * CFrame.new(0.25, 0.25, -0.25) * CFrame.Angles(Rad(45), 0, Rad(25 + 5 * Sin(sine / 7))), 0.3)
  265. else
  266. vwall = false
  267. end
  268. until vwall == false
  269. bv:remove()
  270. attack = false
  271. vwall = false
  272. movelegs = true
  273. end
  274. end
  275.  
  276. function Oof(Ch)
  277. if Ch.ClassName == "Model" and Ch ~= char then
  278. local D = Ch:GetDescendants()
  279. for i = 1,#D do
  280. local ee = D[i]
  281. if ee:IsA("Humanoid") then
  282. ee.BreakJointsOnDeath = false
  283. elseif ee:IsA("Motor6D") or ee:IsA("Motor") then
  284. local Old = ee.Parent
  285. ee.Parent = nil
  286. local R = Instance.new("Glue",Old)
  287. R.Name = ee.Name
  288. R.Part0 = ee.Part0
  289. R.Part1 = ee.Part1
  290. R.C0 = ee.C0
  291. R.C1 = ee.C1
  292. elseif ee:IsA("Part") or ee:IsA("MeshPart") then
  293. ee.Anchored = false
  294. end
  295. end
  296. end
  297. end
  298.  
  299. function Dismember(MAN,DOWHAT)
  300. local HUM = MAN:FindFirstChildOfClass("Humanoid")
  301. if HUM then
  302. HUM.Health = 0
  303. HUM.PlatformStand = true
  304. end
  305. Oof(MAN)
  306. end
  307.  
  308. function use()
  309. attack = true
  310. movelegs = true
  311. local ea = false
  312. local hitbox = part.Touched:connect(function(hit)
  313. if ea == false and not char:FindFirstChild("cooldown") then
  314. blockparticle(1, 1, hit.Material, hit.Color, 60, 6, part.CFrame)
  315. local number = Instance.new("NumberValue",char) number.Name = "cooldown" Debris:AddItem(number, 1)
  316. end
  317. local dud = hit.Parent
  318. if dud ~= char and dud ~= workspace and ea == false then
  319. for i,v in pairs (dud:children()) do
  320. if v:IsA("Humanoid") then
  321. v.Health = v.Health - 1
  322.  
  323. end
  324. end
  325. local torso = dud:FindFirstChild("Torso") or dud:FindFirstChild("UpperTorso")
  326. if torso then
  327. torso.Anchored = true
  328. coroutine.resume(coroutine.create(function()
  329. if not ea and fx == true then
  330. ea = true
  331. blockparticle(13, 1, "Granite", Color3.new(1, 0, 0), 120, 6, torso.CFrame)
  332. torso.Anchored = false
  333. local s = Instance.new("Sound",torso) s.SoundId = "rbxassetid://264486467" s.Volume = 10 s:Play()
  334. end
  335. end))
  336. for i,v in pairs (dud:children()) do
  337. if v:IsA("Humanoid") then
  338. v.Health = v.Health - 75
  339. if v.Health > 9000 then
  340. v.MaxHealth = 0
  341. v.Health = 0
  342. end
  343. end
  344. end
  345. for i,v in pairs (dud:children()) do
  346. if v:IsA("Humanoid") then
  347. if v.Health > 1000 then
  348. v.MaxHealth = 0
  349. v.Health = 0
  350. end
  351. end
  352. end
  353. end
  354. end
  355. end)
  356. for i = 1,11 do
  357. Swait()
  358. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / 22)), 0.3)
  359. clerp(neck, necknor * CFrame.Angles(0, 0, 0), 0.3)
  360. clerp(RH, RHnor * CFrame.Angles(Rad(-3), Rad(-15), 0) * CFrame.new(0, -0.05 * Cos(sine / 22), 0), 0.3)
  361. clerp(LH, LHnor * CFrame.Angles(Rad(-3), Rad(15), 0) * CFrame.new(0, -0.05 * Cos(sine / 22), 0), 0.3)
  362. clerp(RS, RSnor * CFrame.new(0, -0.25, 0) * CFrame.Angles(Rad(35), Rad(0), Rad(180) + Rad(20)), 0.3)
  363. clerp(LS, LSnor * CFrame.new(0.25, 0.25, -0.25) * CFrame.Angles(Rad(45), 0, Rad(25)), 0.3)
  364. end
  365. for i = 1,11 do
  366. Swait()
  367. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / 22)), 0.3)
  368. clerp(neck, necknor * CFrame.Angles(0, 0, 0), 0.3)
  369. clerp(RH, RHnor * CFrame.Angles(Rad(-3), Rad(-15), 0) * CFrame.new(0, -0.05 * Cos(sine / 22), 0), 0.3)
  370. clerp(LH, LHnor * CFrame.Angles(Rad(-3), Rad(15), 0) * CFrame.new(0, -0.05 * Cos(sine / 22), 0), 0.3)
  371. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(30), Rad(0), Rad(25)), 0.3)
  372. clerp(LS, LSnor * CFrame.new(0.25, 0.25, -0.25) * CFrame.Angles(Rad(45), 0, Rad(25)), 0.3)
  373. end
  374. hitbox:disconnect()
  375. movelegs = true
  376. attack = false
  377. end
  378.  
  379. mouse.KeyDown:connect(function(key)
  380. if key == "b" then
  381. vrun()
  382. end
  383. end)
  384.  
  385. mouse.KeyUp:connect(function(key)
  386. if key == "b" and vwall == true then
  387. vwall = false
  388. end
  389. end)
  390.  
  391. mouse.Button1Down:connect(function()
  392. if attack == false then
  393. use()
  394. end
  395. end)
  396.  
  397. while true do
  398. Swait()
  399. for i,v in pairs (char:children()) do
  400. if v:IsA("Part") or v:IsA("MeshPart") then
  401. v.Locked = true
  402. end
  403. end
  404. sine = sine + 1
  405. hum.JumpPower = 56
  406. hum.WalkSpeed = sped
  407. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  408. torsverticalvel = root.Velocity.y
  409. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  410. neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(root.Position, (CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6), char)
  411. local State = (hum.PlatformStand and 'Paralyzed' or hum.Sit and 'Sit' or not hitfloor and root.Velocity.y < -1 and "Fall" or not hitfloor and root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
  412. if (State == 'Fall') then
  413. if neartouch ~= nil then
  414. if neartouch and fx then
  415. blockparticle(2, 1, neartouch.Material, neartouch.Color, 60, 6, root.CFrame * CFrame.new(0, -2, 0))
  416. local s = Instance.new("Sound", root) s.SoundId = "rbxassetid://180683823" s.Volume = 10 s:Play() Debris:AddItem(s, 2.5)
  417. end
  418. end
  419. end
  420. hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
  421. if TORSOVELOCITY < 1 and hitfloor ~= nil then
  422. anim = "Idle"
  423. if attack == false then
  424. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.05 * Cos(sine / 22)), 0.3)
  425. clerp(neck, necknor * CFrame.Angles(Rad(35), 0, Rad(0 + 15 * Cos(sine / 15))), 0.3)
  426. clerp(RH, RHnor * CFrame.Angles(Rad(-3), Rad(-15), 0) * CFrame.new(0, -0.05 * Cos(sine / 22), 0), 0.3)
  427. clerp(LH, LHnor * CFrame.Angles(Rad(-3), Rad(15), 0) * CFrame.new(0, -0.05 * Cos(sine / 22), 0), 0.3)
  428. clerp(RS, RSnor * CFrame.new(0, -0.25, 0) * CFrame.Angles(Rad(0), Rad(-15), Rad(180)), 0.3)
  429. clerp(LS, LSnor * CFrame.new(0.25, 0.25, -0.25) * CFrame.Angles(Rad(45), 0, Rad(25)), 0.3)
  430. end
  431. elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
  432. anim = "Walk"
  433. if attack == false then
  434. local ea = 11
  435. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.15 * Cos(sine / (ea / 4))) * CFrame.Angles(Rad(15) - Rad(root.Velocity.y) * 2.25, 0, 0), 0.3)
  436. clerp(neck, necknor * CFrame.Angles(Rad(-15), 0, Rad(0 + 1 * Cos(sine / 15))), 0.3)
  437. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(80 * Sin(sine / (ea / 2)))) * CFrame.new(0.25 * Sin(sine / (ea / 2)), 0 + 0.25 * Sin(sine / (ea / 2)), 0), 0.3)
  438. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(80 * Sin(sine / (ea / 2)))) * CFrame.new(0.25 * Sin(sine / (ea / 2)), 0 + 0.25 * Sin(sine / (ea / 2)), 0), 0.3)
  439. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(15 + 5 * Sin(sine / 22)), Rad(-90 - 5 * Sin(sine / 7))), 0.3)
  440. clerp(LS, LSnor * CFrame.new(0.25, 0.25, -0.25) * CFrame.Angles(Rad(45), 0, Rad(25 + 5 * Sin(sine / 7))), 0.3)
  441. end
  442. if attack == true and movelegs == true then
  443. local ea = 11
  444. clerp(RH, RHnor * CFrame.Angles(Rad(0), Rad(0), Rad(80 * Sin(sine / (ea / 2)))) * CFrame.new(0.25 * Sin(sine / (ea / 2)), 0 + 0.25 * Sin(sine / (ea / 2)), 0), 0.3)
  445. clerp(LH, LHnor * CFrame.Angles(Rad(0), Rad(0), Rad(80 * Sin(sine / (ea / 2)))) * CFrame.new(0.25 * Sin(sine / (ea / 2)), 0 + 0.25 * Sin(sine / (ea / 2)), 0), 0.3)
  446. end
  447. elseif torsverticalvel > 0.5 and hitfloor == nil then
  448. anim = "Jump"
  449. if attack == false then
  450. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(5), 0, 0), 0.3)
  451. clerp(neck, necknor * CFrame.Angles(Rad(-5), 0, 0), 0.3)
  452. clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(-20)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  453. clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(20)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  454. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(160)), 0.3)
  455. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(20 + 6 * math.sin(sine / 12)), 0, Rad(-160)), 0.3)
  456. end
  457. elseif torsverticalvel < 0.5 and hitfloor == nil then
  458. anim = "Fall"
  459. if attack == false then
  460. clerp(rootj, rootjnor * CFrame.new(0, 0, 0.1 * Cos(sine / 12)) * CFrame.Angles(Rad(-5), 0, 0), 0.3)
  461. clerp(neck, necknor * CFrame.Angles(Rad(25), 0, 0), 0.3)
  462. clerp(RH, RHnor * CFrame.Angles(Rad(-6), Rad(-15), Rad(25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  463. clerp(LH, LHnor * CFrame.Angles(Rad(-6), Rad(15), Rad(-25)) * CFrame.new(0, -0.1 * Cos(sine / 12), 0), 0.3)
  464. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(35)), 0.3)
  465. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, Rad(-35)), 0.3)
  466. end
  467. end
  468. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement