Hey there, i'm trying to do this script
local part = game.Workspace.TestMenuLocation
script.Parent.MouseButton1Click:Connect(function()
local human = script.Parent:FindFirstChild("Humanoid")
human.Parent.HumanoidRootPart.CFrame = part.CFrame or human.Parent.Torso.CFrame == part.CFrame
end)
but i want the "local human = script.Parent:FindFirstChild("Humanoid")" line to find the players' humanoid when clicked a button.
How do i fix this

2 comments
Is it a local or server script?
server script