Sc4pterR0bl0x

gplib winning

Jun 14th, 2021
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. local GPLib = {}
  2. local itn = getgenv().ItemName
  3. local char = game.Players.LocalPlayer.Character
  4. local backpack = game.Players.LocalPlayer.Backpack
  5. function GPLib:SelfDestruct()
  6. for i,v in pairs(char:GetChildren()) do
  7. if v:IsA("Tool") then
  8. v:Destroy()
  9. end
  10. end
  11. char.Humanoid.Health = 0
  12. end
  13. function GPLib:GetTorsoPos()
  14. return Vector3.new(0.5,0,-0.4)
  15. end
  16. function GPLib:EquipAll()
  17. for i,v in pairs(backpack:GetChildren()) do
  18. if v:IsA("Tool") then
  19. v.Parent = char
  20. end
  21. end
  22. function GPLib:EquipAllWithMatchingItemName()
  23. for i,v in pairs(backpack:GetChildren()) do
  24. if v:IsA("Tool") and v.Name == itn then
  25. v.Parent = char
  26. end
  27. end
  28. end
  29. end
  30. function GPLib:FakeClass(func)
  31. return func
  32. end
  33. function GPLib:CreateAlignment(Part1,Part0,Position,Angle,name)
  34. local AlignPos = Instance.new("AlignPosition", Part1);
  35. AlignPos.Parent.CanCollide = false;
  36. AlignPos.ApplyAtCenterOfMass = true;
  37. AlignPos.MaxForce = 67752;
  38. AlignPos.MaxVelocity = math.huge/9e110;
  39. AlignPos.ReactionForceEnabled = false;
  40. AlignPos.Responsiveness = 200;
  41. AlignPos.RigidityEnabled = false;
  42. local AlignOrient = Instance.new("AlignOrientation", Part1);
  43. AlignOrient.MaxAngularVelocity = math.huge/9e110;
  44. AlignOrient.MaxTorque = 67752;
  45. AlignOrient.PrimaryAxisOnly = false;
  46. AlignOrient.ReactionTorqueEnabled = false;
  47. AlignOrient.Responsiveness = 200;
  48. AlignOrient.RigidityEnabled = false;
  49. local AttachmentA=Instance.new("Attachment",Part1);
  50. local AttachmentB=Instance.new("Attachment",Part0);
  51. AttachmentB.Orientation = Angle
  52. AttachmentB.Position = Position
  53. AttachmentB.Name = name
  54. AlignPos.Attachment0 = AttachmentA;
  55. AlignPos.Attachment1 = AttachmentB
  56. AlignOrient.Attachment0 = AttachmentA
  57. AlignOrient.Attachment1 = AttachmentB
  58. end
  59. function GPLib:SetClipboard(str)
  60. if str ~= nil then
  61. setclipboard(str)
  62. else
  63. setclipboard("GPLib Winning")
  64. end
  65. end
Advertisement
Add Comment
Please, Sign In to add comment