I am making a GUI which is only visible to me. I can give cash to any player using that GUI. This may sound weird but I am doing it to test the new items I add. I want to add a function that if I say others then every one, except me, in the server's cash value will change to the given cash value. Here is the script. It is not working. It gives cash to others but it gives it to me too.
elseif name.Text == "others" or "Others" then
local children = game.Players:GetPlayers()
for i,v in pairs(children) do
if v.Name ~= "StrategicPlayZ" then
v.leaderstats.Cash.Value = v.leaderstats.Cash.Value + value
end
end
end
Please tell me what is the problem here and how do I fix it. Thanks!
And by the way the script does not shows any error in the output. It just gives cash to others but to also.

5 comments
Is this a LocalScript or a Script? Is your script erroring?
name.Text == "others" or "Others"will not work as expected.It is in a script. The script runs when a remote event is fired. And the script is not erroring.
ok, can you print v.Name?
I did print v.Name but it didn't print anything.
That's really weird