Rhysical

wing

Nov 25th, 2022
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.21 KB | None | 0 0
  1. local HatChar = game.Players.LocalPlayer.Character
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. HumanDied = false
  9. local reanim
  10. function noplsmesh(hat)
  11. _G.OldCF=workspace.Camera.CFrame
  12. oldchar=game.Players.LocalPlayer.Character
  13. game.Players.LocalPlayer.Character=workspace[game.Players.LocalPlayer.Name]
  14. for i,v in next, workspace[game.Players.LocalPlayer.Name][hat]:GetDescendants() do
  15. if v:IsA('Mesh') or v:IsA('SpecialMesh') then
  16. v:Remove()
  17. end
  18. end
  19.  
  20. end
  21. _G.ClickFling=false -- Set this to true if u want.
  22. loadstring(game:HttpGet(('https://raw.githubusercontent.com/OofHead-FE/nexo-before-deleted/main/NexoPD'),true))()
  23.  
  24. IT = Instance.new
  25. CF = CFrame.new
  26. VT = Vector3.new
  27. RAD = math.rad
  28. C3 = Color3.new
  29. UD2 = UDim2.new
  30. BRICKC = BrickColor.new
  31. ANGLES = CFrame.Angles
  32. EULER = CFrame.fromEulerAnglesXYZ
  33. COS = math.cos
  34. ACOS = math.acos
  35. SIN = math.sin
  36. ASIN = math.asin
  37. ABS = math.abs
  38. MRANDOM = math.random
  39. FLOOR = math.floor
  40.  
  41. speed = 1
  42. sine = 1
  43. srv = game:GetService('RunService')
  44.  
  45. function hatset(yes,part,c1,c0,nm)
  46. reanim[yes].Handle.AccessoryWeld.Part1=reanim[part]
  47. reanim[yes].Handle.AccessoryWeld.C1=c1 or CFrame.new()
  48. reanim[yes].Handle.AccessoryWeld.C0=c0 or CFrame.new()--3bbb322dad5929d0d4f25adcebf30aa5
  49. if nm==true then
  50. noplsmesh(yes)
  51. end
  52. end
  53.  
  54. --put the hat script converted below
  55.  
  56. reanim = game.Players.LocalPlayer.Character.CWExtra.NexoPD
  57. RJ = reanim.HumanoidRootPart.RootJoint
  58. RS = reanim.Torso['Right Shoulder']
  59. LS = reanim.Torso['Left Shoulder']
  60. RH = reanim.Torso['Right Hip']
  61. LH = reanim.Torso['Left Hip']
  62. Root = reanim.HumanoidRootPart
  63. NECK = reanim.Torso.Neck
  64. NECK.C0 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  65. NECK.C1 = CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  66. RJ.C1 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  67. RJ.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  68. RS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  69. LS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  70. RH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  71. LH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  72. RH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  73. LH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  74. RS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  75. LS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  76.  
  77. Mode='1'
  78.  
  79. mousechanger=game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  80. if k == '1' then-- first mode
  81. Mode='1'
  82. end
  83. end)
  84.  
  85.  
  86.  
  87. attacklol=game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()
  88. Mode='Attack0'
  89. wait(0.07) -- time of attack u can edit this
  90. Mode='Attack1'
  91. wait(.1)
  92. Mode='Attack3'
  93. wait(.2)
  94. Mode ='1'
  95. end)
  96.  
  97.  
  98.  
  99. coroutine.wrap(function()
  100. while true do -- anim changer
  101. if HumanDied then mousechanger:Disconnect() attacklol:Disconnect() break end
  102. sine = sine + speed
  103. local rlegray = Ray.new(reanim["Right Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  104. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  105. local llegray = Ray.new(reanim["Left Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  106. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  107. local rightvector = (Root.Velocity * Root.CFrame.rightVector).X + (Root.Velocity * Root.CFrame.rightVector).Z
  108. local lookvector = (Root.Velocity * Root.CFrame.lookVector).X + (Root.Velocity * Root.CFrame.lookVector).Z
  109. if lookvector > reanim.Humanoid.WalkSpeed then
  110. lookvector = reanim.Humanoid.WalkSpeed
  111. end
  112. if lookvector < -reanim.Humanoid.WalkSpeed then
  113. lookvector = -reanim.Humanoid.WalkSpeed
  114. end
  115. if rightvector > reanim.Humanoid.WalkSpeed then
  116. rightvector = reanim.Humanoid.WalkSpeed
  117. end
  118. if rightvector < -reanim.Humanoid.WalkSpeed then
  119. rightvector = -reanim.Humanoid.WalkSpeed
  120. end
  121. local lookvel = lookvector / reanim.Humanoid.WalkSpeed
  122. local rightvel = rightvector / reanim.Humanoid.WalkSpeed
  123. if Mode == '1' then
  124. if Root.Velocity.y > 1 then -- jump
  125.  
  126. elseif Root.Velocity.y < -1 then -- fall
  127.  
  128. elseif Root.Velocity.Magnitude < 2 then -- idle
  129. reanim.Humanoid.JumpPower=0
  130. reanim.Humanoid.WalkSpeed=40
  131. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  132. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(-22+1*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  133. RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),0.45+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(-22+-8*math.cos(sine/13)),RAD(3+1*math.cos(sine/13)),RAD(5+3*math.cos(sine/13))),.3)
  134. LS.C0 = LS.C0:Lerp(CF(-1.5+0*math.cos(sine/13),0.5+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(-13+-11*math.cos(sine/13)),RAD(5+1*math.cos(sine/13)),RAD(-6+-3*math.cos(sine/13))),.3)
  135. RH.C0 = RH.C0:Lerp(CF(0.5+0*math.cos(sine/13),-1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(-11+7*math.cos(sine/13)),RAD(-8+2*math.cos(sine/13)),RAD(5+0*math.cos(sine/13))),.3)
  136. LH.C0 = LH.C0:Lerp(CF(-0.5+0*math.cos(sine/13),-1+0*math.sin(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(-17+-8*math.cos(sine/13)),RAD(5+2*math.cos(sine/13)),RAD(-4+-1*math.cos(sine/13))),.3)
  137. -- right wing
  138. hatset('MeshPartAccessory','Torso',CFrame.new(),reanim['MeshPartAccessory'].Handle.AccessoryWeld.C0:Lerp(CF(-1.8+0.1*math.cos(sine/13),-0.5+0*math.cos(sine/13),-0.6+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(10+10*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),1),false)
  139. reanim['MeshPartAccessory'].Handle.AccessoryWeld.C0 = reanim['MeshPartAccessory'].Handle.AccessoryWeld.C0:Lerp(CF(-1.8+0.1*math.cos(sine/13),-0.5+0*math.cos(sine/13),-0.6+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(10+10*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  140. -- left wing
  141.  
  142. elseif Root.Velocity.Magnitude < 200 then -- walk
  143. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  144. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/7),1+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-40+3*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  145. RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/7),0.45+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-22+-8*math.cos(sine/7)),RAD(3+1*math.cos(sine/7)),RAD(5+3*math.cos(sine/7))),.3)
  146. LS.C0 = LS.C0:Lerp(CF(-1.5+0*math.cos(sine/7),0.5+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-13+-11*math.cos(sine/7)),RAD(5+1*math.cos(sine/7)),RAD(-6+-3*math.cos(sine/7))),.3)
  147. RH.C0 = RH.C0:Lerp(CF(0.5+0*math.cos(sine/7),-1+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-11+7*math.cos(sine/7)),RAD(-8+2*math.cos(sine/7)),RAD(5+0*math.cos(sine/7))),.3)
  148. LH.C0 = LH.C0:Lerp(CF(-0.5+0*math.cos(sine/7),-1+0*math.sin(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-17+-8*math.cos(sine/7)),RAD(5+2*math.cos(sine/7)),RAD(-4+-1*math.cos(sine/7))),.3)
  149. -- right wing
  150. hatset('MeshPartAccessory','Torso',CFrame.new(),reanim['MeshPartAccessory'].Handle.AccessoryWeld.C0:Lerp(CF(-1.8+0.1*math.cos(sine/8),-0.5+0*math.cos(sine/8),-0.6+0*math.cos(sine/8))*ANGLES(RAD(0+0*math.cos(sine/8)),RAD(10+10*math.cos(sine/8)),RAD(0+0*math.cos(sine/8))),1),false)
  151. reanim['MeshPartAccessory'].Handle.AccessoryWeld.C0 = reanim['MeshPartAccessory'].Handle.AccessoryWeld.C0:Lerp(CF(-1.8+0.1*math.cos(sine/8),-0.5+0*math.cos(sine/8),-0.6+0*math.cos(sine/8))*ANGLES(RAD(0+0*math.cos(sine/8)),RAD(10+10*math.cos(sine/8)),RAD(0+0*math.cos(sine/8))),.3)
  152. -- left wing
  153.  
  154. elseif Root.Velocity.Magnitude > 20 then -- run
  155. NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),1+0*math.cos(sine/13),0+0*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
  156. RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/7),1+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-40+3*math.cos(sine/7)),RAD(0+0*math.cos(sine/7)),RAD(0+0*math.cos(sine/7))),.3)
  157. RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/7),0.45+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-22+-8*math.cos(sine/7)),RAD(3+1*math.cos(sine/7)),RAD(5+3*math.cos(sine/7))),.3)
  158. LS.C0 = LS.C0:Lerp(CF(-1.5+0*math.cos(sine/7),0.5+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-13+-11*math.cos(sine/7)),RAD(5+1*math.cos(sine/7)),RAD(-6+-3*math.cos(sine/7))),.3)
  159. RH.C0 = RH.C0:Lerp(CF(0.5+0*math.cos(sine/7),-1+0*math.cos(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-11+7*math.cos(sine/7)),RAD(-8+2*math.cos(sine/7)),RAD(5+0*math.cos(sine/7))),.3)
  160. LH.C0 = LH.C0:Lerp(CF(-0.5+0*math.cos(sine/7),-1+0*math.sin(sine/7),0+0*math.cos(sine/7))*ANGLES(RAD(-17+-8*math.cos(sine/7)),RAD(5+2*math.cos(sine/7)),RAD(-4+-1*math.cos(sine/7))),.3)
  161. -- right wing
  162. hatset('MeshPartAccessory','Torso',CFrame.new(),reanim['MeshPartAccessory'].Handle.AccessoryWeld.C0:Lerp(CF(-1.8+0.1*math.cos(sine/8),-0.5+0*math.cos(sine/8),-0.6+0*math.cos(sine/8))*ANGLES(RAD(0+0*math.cos(sine/8)),RAD(10+10*math.cos(sine/8)),RAD(0+0*math.cos(sine/8))),1),false)
  163. reanim['MeshPartAccessory'].Handle.AccessoryWeld.C0 = reanim['MeshPartAccessory'].Handle.AccessoryWeld.C0:Lerp(CF(-1.8+0.1*math.cos(sine/8),-0.5+0*math.cos(sine/8),-0.6+0*math.cos(sine/8))*ANGLES(RAD(0+0*math.cos(sine/8)),RAD(10+10*math.cos(sine/8)),RAD(0+0*math.cos(sine/8))),.3)
  164. -- left wing
  165.  
  166. end
  167. elseif Mode == 'Attack0' then --attack clerp
  168.  
  169.  
  170. elseif Mode == 'Attack1' then --attack clerp
  171.  
  172.  
  173. elseif Mode == 'Attack3' then --attack clerp
  174.  
  175.  
  176. end
  177. srv.RenderStepped:Wait()
  178. end
  179. end)()
Advertisement
Add Comment
Please, Sign In to add comment