Roblox GUI touch caption

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear! I want to get better at scripting

  2. What is the issue? Include screenshots / videos if possible! I want to know how can I make it show a caption when I touch the GUI button.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? I haven’t tried anything yet because I don’t know how it work I have a asked a lot of people but they didn’t know.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you! I want to make it like when you touch the hide player button it will pop up a caption and it will say the description on it.

-- This is an example Lua code block

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

So you want it to pop up when you click the button? If so do this:

local Caption = --TheCaption

script.Parent.MouseButton1Down:Connect(function()
Caption.Visible = true
wait(The Time you want it to last for)
Caption.Visible = false
end)

I meant like when you touch to GUI with you mouse icon there with be another GUI pop up and in side it will be a description

There I changed it to a video.

Ohh my bad I thought when you meant touch you meant clicked.
So for this do:

script.Parent.MouseEnter:Connect(function()
--Make it visible
end)

and when they leave do:

script.Parent.MouseLeave:Connect(function()
--Make it invisible
end)