I have been trying to make a voting system, but I have one problem. When I try to find the player, it doesn't look for the Player's name (What is typed into the box named player) but it instead looks inside the textbox. Code is below:
local playname = script.Parent.Parent.Player.Text
script.Parent.MouseButton1Down:connect(function()
local value = game.Players:FindFirstChild(playname["leaderstats"]["ThumbsUp"].Value)
value = value + 1
end

2 comments
Is Player.Text a table formatted as a string? Like a JSON table or something? Also, you should post the returned error code.
There is no error. It just doesn't work.