What I am trying to do here is when you click a players Torso/Humanoid, it will print out there username. But I can't find or even create the right function for it. Any help? (Also I probably messed up on some of the functions so if I did then please fix it thank you.)
code:
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local kind = "Name"
local char = game.Workspace:FindFirstChild(plr.Name)
mouse.Button1Down:connect(function()
if mouse.Target ~= nil then
if kind == "Name" then
local g = mouse.Target.Parent
if g:FindFirstChild("Humanoid") then
-- Where I am stuck on
end
end
end
end)

1 comment
ty