Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

ClickDetector Can't Detect Player Name?

Asked by 3 years ago
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

1
B Ziffixture 6913 — 3y
1
R Ziffixture 6913 — 3y
1
U Ziffixture 6913 — 3y
1
H Ziffixture 6913 — 3y
0
use the plr parameter to find the name (plr.Name) guest59093 0 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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

Ad

Answer this question