~~~~~~~~~~~~~~~~~x = script.Parent
function onClicked(mouse)
wait(1)
Instance.new("Message", game.Workspace)
wait(1)
game.Workspace.Message.Text = Player.Name.."clicked The button!"
wait(3)
game.Workspace.Message.Text = ""
end
x.ClickDetector.MouseClick:connect(onClicked)
COMMUNITY QUESTION
What's wrong in this script?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Did you define "Player?" I see you use "Player.Name," and I do not see anything defining "Player."