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...
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...
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
thanks