RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"how to make a script that copy player name when click in player body"
-- local script local player = game.Players.LocalPlayer local playerName = player.Name local part = script.Parent local function onClick(otherPart) if otherPart.Parent:IsA("Player") then playerName = otherPart.Parent.Name end end part.Touched:Connect(onClick) game.Workspace.NameLabel.Text = playerName