script.Parent.Parent.TextButton.MouseButton1Click:Connect(function()
local edit =script.Parent.Parent.Parent.Parent.Parent.EditMenu
edit.Visible = true
edit.PLRNAME.Value = script.Parent.Parent.PlrName.Value
local plr = game.Players:GetUserIdFromNameAsync(script.Parent.Parent.PlrName.Value)
edit.Icon.Image = game.Players:GetUserThumbnailAsync(plr,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size60x60)
edit.PlrName.Text = script.Parent.Parent.PlrName.Value
print(edit.PLRNAME.Value)
end)
The problem is that when I click on the button, nothing happens and the script does not work, I don’t know why.
Script in the button. This is server script in the button.