Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What's wrong in this script?

Asked by 10 years ago

~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~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)

0
Did you define "Player?" I see you use "Player.Name," and I do not see anything defining "Player." SanityMan 239 — 10y

Answer this question