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

am trying to make a Value equal a player name so it can do a certain function can anyone help?

Asked by 8 years ago
script.Parent.Union.ClickDetector.MouseClick:connect(function(player)
    if game.ReplicatedStorage.Name.Value == player.Name then
        print("Hello")
    else
        print("Na")
    end
end)
1
Explain better! What do you exactly need? maquilaque 136 — 8y
0
As you see ever time it saws Na when i out the name in value is there why it's not working? zansummer 3 — 8y
0
put a print after line 1 like this; print(player.Name) and see what it prints RobloxianDestory 262 — 8y
0
it says Player1 and I put that in the String Value so why is it not working? zansummer 3 — 8y
View all comments (2 more)
0
Is there any error? BlueTaslem 18071 — 8y
0
There is no error zansummer 3 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

change Name in ReplictedStorage to something else and in the script and it'll work

proof here

Ad

Answer this question