Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GPLib = {}
- local itn = getgenv().ItemName
- local char = game.Players.LocalPlayer.Character
- local backpack = game.Players.LocalPlayer.Backpack
- function GPLib:SelfDestruct()
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Tool") then
- v:Destroy()
- end
- end
- char.Humanoid.Health = 0
- end
- function GPLib:GetTorsoPos()
- return Vector3.new(0.5,0,-0.4)
- end
- function GPLib:EquipAll()
- for i,v in pairs(backpack:GetChildren()) do
- if v:IsA("Tool") then
- v.Parent = char
- end
- end
- function GPLib:EquipAllWithMatchingItemName()
- for i,v in pairs(backpack:GetChildren()) do
- if v:IsA("Tool") and v.Name == itn then
- v.Parent = char
- end
- end
- end
- end
- function GPLib:FakeClass(func)
- return func
- end
- function GPLib:CreateAlignment(Part1,Part0,Position,Angle,name)
- local AlignPos = Instance.new("AlignPosition", Part1);
- AlignPos.Parent.CanCollide = false;
- AlignPos.ApplyAtCenterOfMass = true;
- AlignPos.MaxForce = 67752;
- AlignPos.MaxVelocity = math.huge/9e110;
- AlignPos.ReactionForceEnabled = false;
- AlignPos.Responsiveness = 200;
- AlignPos.RigidityEnabled = false;
- local AlignOrient = Instance.new("AlignOrientation", Part1);
- AlignOrient.MaxAngularVelocity = math.huge/9e110;
- AlignOrient.MaxTorque = 67752;
- AlignOrient.PrimaryAxisOnly = false;
- AlignOrient.ReactionTorqueEnabled = false;
- AlignOrient.Responsiveness = 200;
- AlignOrient.RigidityEnabled = false;
- local AttachmentA=Instance.new("Attachment",Part1);
- local AttachmentB=Instance.new("Attachment",Part0);
- AttachmentB.Orientation = Angle
- AttachmentB.Position = Position
- AttachmentB.Name = name
- AlignPos.Attachment0 = AttachmentA;
- AlignPos.Attachment1 = AttachmentB
- AlignOrient.Attachment0 = AttachmentA
- AlignOrient.Attachment1 = AttachmentB
- end
- function GPLib:SetClipboard(str)
- if str ~= nil then
- setclipboard(str)
- else
- setclipboard("GPLib Winning")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment