Text doesn't appear when a button is clicked?
So i want text to appear when someone clicks. It should display this: "[name of the player who clicked] asks you to open the gate." But instead it shows only the "asks you to open the gate" part. Help?
My most recent attempt: (it is a normal script)
1 | local sign = script.Parent.Parent.P_cel.SurfaceGui.TextLabel |
2 | local cd = script.Parent.ClickDetector |
4 | cd.MouseClick:Connect( function (plr) |
5 | sign.Text = plr.Name and "asks you to open the gate. |
What went wrong?
And, it doesn't display any errors.