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

ClickDetector Can't Detect Player Name?

local click = script.Parent

click.MouseClick:Connect(function(plr)
	if script.Parent.Parent.Parent.Parent.Parent.Owned == true then
		if script.Parent.Parent.Parent.Parent.Parent.Owner.Value and 	 
                        script.Parent.Parent.Parent.Parent.Parent.Owner.Value then
			script.Parent.Parent.Parent.Parent.Main.Transparency = 0.5
			script.Parent.Parent.Parent.Parent.Main.CanCollide = false
			wait(3)
			script.Parent.Parent.Parent.Parent.Main.Transparency = 0
			script.Parent.Parent.Parent.Parent.Main.CanCollide = true
		end
	end
end)

theres scripts

5 comments

1

B

1

R

1

U

1

H

0

use the plr parameter to find the name (plr.Name)

1 answer

In the function one of the arguments you put is "plr". To find the player name you would use "plr.Name".

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