Advertisement
PY_XD

Untitled

Jul 10th, 2022
1,116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.95 KB | None | 0 0
  1. game:GetService("StarterGui"):SetCore("SendNotification",{
  2. Title = "MADE BY IM PATRICK";
  3. Text = "Edited by PY XD";
  4. Duration = 4;
  5. })
  6.  
  7. clickfling = true -- set this to false if u dont want click fling or use torso fling
  8.  
  9. function rmesh(a)
  10. if not (workspace[game.Players.LocalPlayer.Name][a].Handle:FindFirstChild('Mesh') or workspace[game.Players.LocalPlayer.Name][a].Handle:FindFirstChild('SpecialMesh')) then return end
  11. old=game.Players.LocalPlayer.Character
  12. game.Players.LocalPlayer.Character=workspace[game.Players.LocalPlayer.Name]
  13. for i,v in next, workspace[game.Players.LocalPlayer.Name]:FindFirstChild(a).Handle:GetDescendants() do
  14. if v:IsA('Mesh') or v:IsA('SpecialMesh') then
  15. v:Remove()
  16. end
  17. end
  18. for i = 1 , 2 do
  19. game.Players.LocalPlayer.Character=old
  20. end
  21. end
  22.  
  23. local plr = game.Players.LocalPlayer local char = plr.Character local srv = game:GetService('RunService') local ct = {} local te = table.insert local m = plr:GetMouse() if char:FindFirstChild('Pal Hair') then else return end _G.Jitter=Vector3.new(0,30,0) for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do if v:IsA("BasePart") and v.Name ~= 'HumanoidRootPart' then bf=Instance.new('BodyForce',v) bf.Force=Vector3.new(50,50,50) te(ct,game:GetService("RunService").Heartbeat:connect(function() pcall(function() v.Velocity = _G.Jitter v.BodyForce.Force=Vector3.new(50,50,50) game.Players.LocalPlayer.ReplicationFocus=workspace sethiddenproperty(game.Players.LocalPlayer,"MaximumSimulationRadius",math.huge) sethiddenproperty(game.Players.LocalPlayer,"SimulationRadius",9e9) end) end)) end end char.Archivable = true fl=Instance.new('Folder',char) fl.Name = 'ArmFling' local reanim = char:Clone() char.Humanoid:ChangeState(16) char.HumanoidRootPart:Destroy() for i,v in next, char.Humanoid:GetPlayingAnimationTracks() do v:Stop() end char.Animate:Remove() hats=0 function create(part, parent, p, r) hats=hats+1 Instance.new("Attachment",part) Instance.new("AlignPosition",part) Instance.new("AlignOrientation",part) Instance.new("Attachment",parent) part.Attachment.Name = part.Name..hats parent.Attachment.Name = part.Name..hats part.AlignPosition.Attachment0 = part[part.Name..hats] part.AlignOrientation.Attachment0 = part[part.Name..hats] part.AlignPosition.Attachment1 = parent[part.Name..hats] part.AlignOrientation.Attachment1 = parent[part.Name..hats] parent[part.Name..hats].Position = p or Vector3.new() part[part.Name..hats].Orientation = r or Vector3.new() part.AlignPosition.MaxForce = 999999999 part.AlignPosition.MaxVelocity = math.huge part.AlignPosition.ReactionForceEnabled = false part.AlignPosition.Responsiveness = math.huge part.AlignOrientation.Responsiveness = math.huge part.AlignPosition.RigidityEnabled = false part.AlignOrientation.MaxTorque = 999999999 end function Pos(part, parent, p) Instance.new("Attachment",part) Instance.new("AlignPosition",part) Instance.new("Attachment",parent) part.Attachment.Name = part.Name parent.Attachment.Name = part.Name part.AlignPosition.Attachment0 = part[part.Name] part.AlignPosition.Attachment1 = parent[part.Name] parent[part.Name].Position = p or Vector3.new() part.AlignPosition.MaxForce = 999999999*10 part.AlignPosition.MaxVelocity = math.huge part.AlignPosition.ReactionForceEnabled = false part.AlignPosition.Responsiveness = math.huge part.AlignPosition.RigidityEnabled = false end function nc(p) if p:IsA('BasePart') or p:IsA('Part') then te(ct,srv.Stepped:Connect(function() p.CanCollide=false end)) te(ct,srv.RenderStepped:Connect(function() p.CanCollide=false end)) else print('Cannot noclip '..p) end end function af() for i,v in next, game.Players:GetDescendants() do if v:IsA('Player') and v.Name ~= game.Players.LocalPlayer.Name then for _,c in next, v.Character:GetDescendants() do if c:IsA('BasePart') and v.Parent== char then noo=Instance.new('NoCollisionConstraint',c) noo.Part1=char['Torso'] noo.Part0=c noo2=Instance.new('NoCollisionConstraint',c) noo2.Part1=char['Head'] noo2.Part0=c end end end end end for i,v in next, reanim:GetDescendants() do if v:IsA('BasePart') or v:IsA('Decal') then v.Transparency = 1 end end for i,v in next, char:GetDescendants() do if v:IsA('BasePart') then nc(v) end end for i,v in next, char:GetDescendants() do if v:IsA('Accessory') and v.Name ~= 'Pal Hair' then v.Handle:BreakJoints() create(v.Handle,reanim[v.Name].Handle) end end for i,v in next, reanim:GetDescendants() do if v:IsA('BasePart') then nc(v) end end for i,v in next, char:GetDescendants() do if v:IsA('Motor6D') and v.Name ~= 'Neck' then v:Destroy() end end for i,v in next, char:GetDescendants() do if v:IsA('BasePart') and v.Name ~= 'Left Arm' and v.Name ~= 'Head' and v.Parent == char then create(v,reanim[v.Name]) end end function flinger(p) f=Instance.new('BodyAngularVelocity',p) f.P=9e9*10 f.AngularVelocity = Vector3.new(9e9*10,9e9*10,9e9*10) f.MaxTorque=Vector3.new(9e9*10,0,0) return f end Pos(char['Left Arm'],reanim['Torso']) fliiiin=flinger(char['Left Arm']) char['Pal Hair'].Handle:BreakJoints() char['Pal Hair'].Handle.Mesh:Destroy() create(char['Pal Hair'].Handle,reanim['Left Arm'],Vector3.new(),Vector3.new(90,0,0)) reanim.Animate.Disabled=true reanim.Parent=fl sh=false fp=Instance.new('Part',reanim) fp.Name='FlingPart' fp.CanCollide=false fp.Transparency=1 if clickfling then te(ct,m.Button1Down:Connect(function() sh=true end)) te(ct,m.Button1Up:Connect(function() sh=false end)) end te(ct,srv.Heartbeat:Connect(function() m.TargetFilter=char if sh then fp.CFrame=CFrame.new(m.Hit.p) char['Left Arm'].Position=fp.Position else fp.CFrame=char.Torso.CFrame*CFrame.new(0,0,0) char['Left Arm'].Position=fp.Position end end)) plr.Character=reanim workspace.Camera.CameraSubject=Head HumanDied=false te(ct,reanim.Humanoid.Died:Connect(function() HumanDied=true fliiiin:Destroy() reanim.HumanoidRootPart.Anchored=true old=reanim.HumanoidRootPart.CFrame reanim.HumanoidRootPart.CFrame=old wait() reanim.HumanoidRootPart.CFrame=old char.Humanoid:Destroy() Instance.new('Humanoid',char) plr.Character=char char:BreakJoints() game.Players:Chat('-gr') for i,v in next, ct do v:Disconnect() end end))
  24.  
  25. IT = Instance.new
  26. CF = CFrame.new
  27. VT = Vector3.new
  28. RAD = math.rad
  29. C3 = Color3.new
  30. UD2 = UDim2.new
  31. BRICKC = BrickColor.new
  32. ANGLES = CFrame.Angles
  33. EULER = CFrame.fromEulerAnglesXYZ
  34. COS = math.cos
  35. ACOS = math.acos
  36. SIN = math.sin
  37. ASIN = math.asin
  38. ABS = math.abs
  39. MRANDOM = math.random
  40. FLOOR = math.floor
  41.  
  42. speed = 1
  43. sine = 1
  44. srv = game:GetService('RunService')
  45.  
  46. reanim = game.Players.LocalPlayer.Character
  47.  
  48. function hat(h,p,c1,c0,m)
  49. reanim[h].Handle.AccessoryWeld.Part1=reanim[p]
  50. reanim[h].Handle.AccessoryWeld.C1=c1 or CFrame.new()
  51. reanim[h].Handle.AccessoryWeld.C0=reanim[h].Handle.AccessoryWeld.C0:Lerp(c0 or CFrame.new(),1)
  52. if m == true then
  53. rmesh(h)
  54. end
  55. end
  56.  
  57. m=game.Players.LocalPlayer:GetMouse()
  58. RJ = reanim.HumanoidRootPart.RootJoint
  59. RS = reanim.Torso['Right Shoulder']
  60. LS = reanim.Torso['Left Shoulder']
  61. RH = reanim.Torso['Right Hip']
  62. LH = reanim.Torso['Left Hip']
  63. Root = reanim.HumanoidRootPart
  64. NECK = reanim.Torso.Neck
  65. NECK.C0 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  66. NECK.C1 = CF(0,-0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  67. RJ.C1 = CF(0,-1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  68. RJ.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  69. RS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  70. LS.C1 = CF(0,0.5,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  71. RH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  72. LH.C1 = CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  73. RH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  74. LH.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  75. RS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  76. LS.C0 = CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(0))
  77.  
  78. reanim.Humanoid.WalkSpeed = 29
  79.  
  80. -- for modes u can go in this link : https://Nexo.notxeneon15.repl.co/nexo/modes.lua
  81.  
  82.  
  83. coroutine.wrap(function()
  84. while true do -- anim changer
  85. if HumanDied then break end
  86. sine = sine + speed
  87. local rlegray = Ray.new(reanim["Right Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  88. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  89. local llegray = Ray.new(reanim["Left Leg"].Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -2, 0))
  90. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  91. local rightvector = (Root.Velocity * Root.CFrame.rightVector).X + (Root.Velocity * Root.CFrame.rightVector).Z
  92. local lookvector = (Root.Velocity * Root.CFrame.lookVector).X + (Root.Velocity * Root.CFrame.lookVector).Z
  93. if lookvector > reanim.Humanoid.WalkSpeed then
  94. lookvector = reanim.Humanoid.WalkSpeed
  95. end
  96. if lookvector < -reanim.Humanoid.WalkSpeed then
  97. lookvector = -reanim.Humanoid.WalkSpeed
  98. end
  99. if rightvector > reanim.Humanoid.WalkSpeed then
  100. rightvector = reanim.Humanoid.WalkSpeed
  101. end
  102. if rightvector < -reanim.Humanoid.WalkSpeed then
  103. rightvector = -reanim.Humanoid.WalkSpeed
  104. end
  105. local lookvel = lookvector / reanim.Humanoid.WalkSpeed
  106. local rightvel = rightvector / reanim.Humanoid.WalkSpeed
  107. if reanim.Humanoid.Jump then -- jump
  108. --jump clerp here
  109. elseif Root.Velocity.y < -1 and reanim.Humanoid.Jump then -- fall
  110. --fall clerp here
  111. elseif Root.Velocity.Magnitude < 2 then -- idle
  112. hat('PointyTowerHat','Right Arm',CFrame.new(0,-1,-2),CFrame.new(0+0*math["cos"](sine/10),0+0*math["cos"](sine/10),0+0*math["cos"](sine/10))*CFrame.Angles(math.rad(0+-100*math["cos"](sine/1)),math.rad(0+250*math["cos"](sine/1)),math.rad(0+0*math["cos"](sine/10))),true)
  113. RJ.C0=RJ.C0:Lerp(CFrame.new(0+1*math.cos(sine/160),3.62+-1.22*math.cos(sine/80),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(-32.62+35*math.cos(sine/16)),math.rad(0+0*math.cos(sine/14)),math.rad(0+0*math.cos(sine/10))),.2)
  114. RS.C0=RS.C0:Lerp(CFrame.new(1.5+0*math.cos(sine/10),0.5+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(150.43+55*math.cos(sine/15)),math.rad(0+0*math.cos(sine/10)),math.rad(20.87+-23*math.cos(sine/78))),.2)
  115. LS.C0=LS.C0:Lerp(CFrame.new(-1.5+0*math.cos(sine/10),0.5+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+-55.55*math.cos(sine/57)),math.rad(0+0*math.cos(sine/10)),math.rad(-40.27+-24.98*math.cos(sine/80))),.2)
  116. RH.C0=RH.C0:Lerp(CFrame.new(0.5+0*math.cos(sine/10),-0.7+0*math.cos(sine/10),-0.8+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+-25*math.cos(sine/15)),math.rad(0+0*math.cos(sine/10)),math.rad(12+0*math.cos(sine/10))),.2)
  117. LH.C0=LH.C0:Lerp(CFrame.new(-0.5+0*math.cos(sine/10),-0.7+0*math.cos(sine/10),-0.3+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+-25*math.cos(sine/12)),math.rad(0+0*math.cos(sine/10)),math.rad(-12+0*math.cos(sine/10))),.2)
  118.  
  119. elseif Root.Velocity.Magnitude < 20 then -- walk
  120.  
  121.  
  122. elseif Root.Velocity.Magnitude > 20 then -- run
  123. hat('PointyTowerHat','Right Arm',CFrame.new(0,-2,0),CFrame.new(0+0*math["cos"](sine/10),0+0*math["cos"](sine/10),0+0*math["cos"](sine/10))*CFrame.Angles(math.rad(0+-100*math["cos"](sine/1)),math.rad(0+250*math["cos"](sine/1)),math.rad(0+0*math["cos"](sine/10))),true)
  124. RJ.C0=RJ.C0:Lerp(CFrame.new(0+0*math.cos(sine/160),3.62+-1.22*math.cos(sine/80),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(-70.83+12*math.cos(sine/15)),math.rad(0+0*math.cos(sine/10)),math.rad(0+0*math.cos(sine/10))),.2)
  125. RS.C0=RS.C0:Lerp(CFrame.new(1.5+0*math.cos(sine/10),0.5+0*math.cos(sine/10),0+0*math.cos(sine/3))*CFrame.Angles(math.rad(0.55+45*math.cos(sine/55)),math.rad(380.03+0*math.cos(sine/10)),math.rad(40.27+24*math.cos(sine/36))),.2)
  126. LS.C0=LS.C0:Lerp(CFrame.new(-1.5+0*math.cos(sine/10),0.5+0*math.cos(sine/10),0+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+-55.55*math.cos(sine/55)),math.rad(0+0*math.cos(sine/10)),math.rad(-40.27+-24.98*math.cos(sine/36))),.2)
  127. RH.C0=RH.C0:Lerp(CFrame.new(0.5+0*math.cos(sine/10),-0.7+0*math.cos(sine/10),-0.2+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+25*math.cos(sine/15)),math.rad(0+0*math.cos(sine/10)),math.rad(12+0*math.cos(sine/10))),.2)
  128. LH.C0=LH.C0:Lerp(CFrame.new(-0.5+0*math.cos(sine/10),-0.7+0*math.cos(sine/10),-0.7+0*math.cos(sine/10))*CFrame.Angles(math.rad(0+-25*math.cos(sine/15)),math.rad(0+0*math.cos(sine/10)),math.rad(-12+0*math.cos(sine/10))),.2)
  129.  
  130. end
  131. srv.RenderStepped:Wait()
  132. end
  133. end)()
  134. --Created using Nexo Animator V4
  135.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement