MouseButton click doesn't work in the script

	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

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.

1 Like

textbutton uis can only be activated by a client using a local script. Otherwise the button just wont work. Also the plr variable gets the userid not really the player name

Yes, now it works without errors, thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.