Hello! To do this, we will need something called a remote event. Just follow the following steps:
SETUP:
1)Create a remote event under ReplicatedStorage
2)Create a local script under the text label you want to change.
4)Create a click detector under the part you want to get clicked
3)Create a server script under the part you want to to get clicked
SCRIPTING
SERVER SCRIPT:
1 | EV = game:GetService( "ReplicatedStorage" ):WaitForChild( "Clicked" ) |
3 | script.Parent.ClickDetector.MouseClick:Connect( function () |
LOCAL SCRIPT:
1 | EV = game:GetService( "ReplicatedStorage" ):WaitForChild( "Clicked" ) |
3 | EV.OnClientEvent:Connect( function () |
4 | script.Parent.Text = "hi" |
6 | script.Parent.Text = "x" |
I hope this helps. With further questions/comments/concerns, feel free to reply to my post. ~mc3334