Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

This text button script doesn't work?

Here's the script

function onClick()
	local Message = Instance.new("Message") 
Message.Text = "Button Clicked!" 
Message.Parent= game.Workspace 
wait(5) 
Message:Remove() 
end

But for some reason It doesn't work. I'm a little nooby at gui's so...

1 answer

✓ Accepted answer
script.Parent.MouseButton1Click:connect(function()
    local Message = Instance.new("Message") 
Message.Text = "Button Clicked!" 
Message.Parent= game.Workspace 
wait(5) 
Message:Remove() 
end)

But the script in the button.

1 comment

0

thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.