Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make clickable players?

I’m trying to make a game where you click a player and then the player that got clicked gets a request. I don’t know how to make a clickable player. I haven’t tried it and I can’t see any posts about this.

3 comments

0

You could insert a ClickDetector into the player's torso when they join the game, or use mouse.target on the client.

0

Are you using R6 Or R15?

0

Kinda late bruh. Thanks for the answers anyways..

2 answers

✓ Accepted answer

Use this script:


PlayerChar = game:GetService("Players").LocalPlayer.Character
local ClickDetec = Instance.new("ClickDetector",PlayerChar.Torso)
 ClickDetec.MaxActivationDistance = 12 --Put here the maximum activation range for clicking on the character.

Now all you gotta do is make a GUI and script it so it appears when the ClickDetector is activated.

2 comments

0

Btw if youre using R15 change the word "Torso" at line 2 for UpperTorso.

0

Just make it a HumanoidRootPart and you don't need to worry about r6 r15 or r30

As others have suggested, use clickdetector,

but instead of setting the clickdetector's parent to a torso

i suggest you weld a block that covers the whole player, with collision and anchored set to false and transparency to 1

then put the clickdetector there

this way it will be easier to click the player

1 comment

1

Setting Massless to true will also help stop the player from glitching with that block, you can also get fancier and use selection boxes.

This discussion is preserved as it was. New answers, comments, and votes are closed.