script.Parent.Union.ClickDetector.MouseClick:connect(function(player)
if game.ReplicatedStorage.Name.Value == player.Name then
print("Hello")
else
print("Na")
end
end)
✓ ANSWER ACCEPTED
am trying to make a Value equal a player name so it can do a certain function can anyone help?
1 answer
✓ Accepted answer
change Name in ReplictedStorage to something else and in the script and it'll work
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
Explain better! What do you exactly need?
As you see ever time it saws Na when i out the name in value is there why it's not working?
put a print after line 1 like this; print(player.Name) and see what it prints
it says Player1 and I put that in the String Value so why is it not working?
Is there any error?
There is no error