I have no idea how would i do it HELP ME! thanks!
What I think you're trying to do is get a player's HumanoidRootPart when they click a GUI button. To do this, we can put a LocalScript
(this is important) in the button with the following code:
--Get the player local player = game:GetService("Players").LocalPlayer --When the button is pressed script.Parent.Activated:Connect(function() local humanoidRootPart = player.Character.HumanoidRootPart end)
Hope this helps.