- --made by Stalker Kostya#2498
- local HatChar = game.Players.LocalPlayer.Character
- HumanDied = false
- local reanim
- function noplsmesh(hat)
- _G.OldCF=workspace.Camera.CFrame
- oldchar=game.Players.LocalPlayer.Character
- game.Players.LocalPlayer.Character=workspace[game.Players.LocalPlayer.Name]
- for i,v in next, workspace[game.Players.LocalPlayer.Name][hat]:GetDescendants() do
- if v:IsA('Mesh') or v:IsA('SpecialMesh') then
- v:Remove()
- end
- end
- end
- _G.ClickFling=false -- Set this to true if u want.
- loadstring(game:HttpGet(('https://raw.githubusercontent.com/OofHead-FE/nexo-before-deleted/main/NexoPD'),true))()
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- speed = 1
- sine = 1
- srv = game:GetService('RunService')
- function hatset(yes,part,c1,c0,nm)
- reanim[yes].Handle.AccessoryWeld.Part1=reanim[part]
- reanim[yes].Handle.AccessoryWeld.C1=c1 or CFrame.new()
- reanim[yes].Handle.AccessoryWeld.C0=c0 or CFrame.new()--3bbb322dad5929d0d4f25adcebf30aa5
- if nm==true then
- noplsmesh(yes)
- end
- end
- --put the hat script converted below
- reanim = game.Players.LocalPlayer.Character.CWExtra.NexoPD
- RJ = reanim.HumanoidRootPart.RootJoint
- RS = reanim.Torso['Right Shoulder']
- LS = reanim.Torso['Left Shoulder']
- RH = reanim.Torso['Right Hip']
- LH = reanim.Torso['Left Hip']
- Root = reanim.HumanoidRootPart
- NECK = reanim.Torso.Neck
- NECK.C0 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- NECK.C1 = CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- RJ.C1 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- RJ.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- RS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- LS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- RH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- LH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- RH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- LH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- RS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- LS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
- Mode='1'
- mousechanger=game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
- if k == '1' then-- first mode
- Mode='1'
- elseif k == 'e' then-- second mode
- Mode='2'
- elseif k == 'q' then-- first mode again
- Mode='1'
- end
- end) -- change the E or Q to whatever keybind u want or leave it
- attacklol=game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()
- Mode='Attack0'
- wait(0.07) -- time of attack u can edit this
- Mode='Attack1'
- wait(.1)
- Mode='Attack3'
- wait(.2)
- Mode ='1' -- change this mode to whatever u want the mode to be after attacking
- end)
- coroutine.wrap(function()
- while true do -- anim changer
- if HumanDied then mousechanger:Disconnect() attacklol:Disconnect() break end
- sine = sine + speed
- local rlegray = Ray.new(reanim["Right Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
- local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
- local llegray = Ray.new(reanim["Left Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
- local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
- local rightvector = (Root.Velocity * Root.CFrame.rightVector).X + (Root.Velocity * Root.CFrame.rightVector).Z
- local lookvector = (Root.Velocity * Root.CFrame.lookVector).X + (Root.Velocity * Root.CFrame.lookVector).Z
- if lookvector > reanim.Humanoid.WalkSpeed then
- lookvector = reanim.Humanoid.WalkSpeed
- end
- if lookvector < -reanim.Humanoid.WalkSpeed then
- lookvector = -reanim.Humanoid.WalkSpeed
- end
- if rightvector > reanim.Humanoid.WalkSpeed then
- rightvector = reanim.Humanoid.WalkSpeed
- end
- if rightvector < -reanim.Humanoid.WalkSpeed then
- rightvector = -reanim.Humanoid.WalkSpeed
- end
- local lookvel = lookvector / reanim.Humanoid.WalkSpeed
- local rightvel = rightvector / reanim.Humanoid.WalkSpeed
- if Mode == '1' then
- if Root.Velocity.y > 1 then -- jump
- NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),-37+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)
- RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),0.4+0*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+21*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
- RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-2+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)
- LS.C0 = LS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-3+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)
- RH.C0 = RH.C0:Lerp(CF(1.5+0*math.cos(sine/13),0+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)
- LH.C0 = LH.C0:Lerp(CF(1.5+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)
- elseif Root.Velocity.y < -1 then -- fall
- NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),-37+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)
- RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),0.4+0*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+21*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
- RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-2+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)
- LS.C0 = LS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-3+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)
- RH.C0 = RH.C0:Lerp(CF(1.5+0*math.cos(sine/13),0+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)
- LH.C0 = LH.C0:Lerp(CF(1.5+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)
- elseif Root.Velocity.Magnitude < 2 xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> 20 then -- run
- NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),-37+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)
- RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),0.4+0*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+21*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
- RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-2+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)
- LS.C0 = LS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-3+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)
- RH.C0 = RH.C0:Lerp(CF(1.5+0*math.cos(sine/13),0+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)
- LH.C0 = LH.C0:Lerp(CF(1.5+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)
- end
- elseif Mode == '2' then
- if Root.Velocity.y > 1 then -- jump
- NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),-37+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)
- RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),0.4+0*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+21*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
- RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-2+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)
- LS.C0 = LS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-3+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)
- RH.C0 = RH.C0:Lerp(CF(1.5+0*math.cos(sine/13),0+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)
- LH.C0 = LH.C0:Lerp(CF(1.5+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)
- elseif Root.Velocity.y < -1 then -- fall
- NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),-37+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)
- RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),0.4+0*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+21*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
- RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-2+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)
- LS.C0 = LS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-3+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)
- RH.C0 = RH.C0:Lerp(CF(1.5+0*math.cos(sine/13),0+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)
- LH.C0 = LH.C0:Lerp(CF(1.5+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)
- elseif Root.Velocity.Magnitude < 2 xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> 20 then -- run
- NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),-37+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)
- RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),0.4+0*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+21*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
- RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-2+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)
- LS.C0 = LS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-3+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)
- RH.C0 = RH.C0:Lerp(CF(1.5+0*math.cos(sine/13),0+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)
- LH.C0 = LH.C0:Lerp(CF(1.5+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)
- end
- elseif Mode == 'Attack0' then --attack clerp
- NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),-37+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)
- RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),0.4+0*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+21*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
- RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-2+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)
- LS.C0 = LS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-3+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)
- RH.C0 = RH.C0:Lerp(CF(1.5+0*math.cos(sine/13),0+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)
- LH.C0 = LH.C0:Lerp(CF(1.5+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)
- elseif Mode == 'Attack1' then --attack clerp
- NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),-37+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)
- RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),0.4+0*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+21*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
- RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-2+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)
- LS.C0 = LS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-3+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)
- RH.C0 = RH.C0:Lerp(CF(1.5+0*math.cos(sine/13),0+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)
- LH.C0 = LH.C0:Lerp(CF(1.5+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)
- elseif Mode == 'Attack3' then --attack clerp
- NECK.C0 = NECK.C0:Lerp(CF(0+0*math.cos(sine/13),-37+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)
- RJ.C0 = RJ.C0:Lerp(CF(0+0*math.cos(sine/13),0.4+0*math.cos(sine/13),0+1*math.cos(sine/13))*ANGLES(RAD(0+0*math.cos(sine/13)),RAD(0+21*math.cos(sine/13)),RAD(0+0*math.cos(sine/13))),.3)
- RS.C0 = RS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-2+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)
- LS.C0 = LS.C0:Lerp(CF(1.5+0*math.cos(sine/13),-3+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)
- RH.C0 = RH.C0:Lerp(CF(1.5+0*math.cos(sine/13),0+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)
- LH.C0 = LH.C0:Lerp(CF(1.5+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)
- end
- srv.RenderStepped:Wait()
- end
- end)()