ブロックに触れる事でGUIが現れる。
テキストボタンに所定のスクリプトを入れる事でさらに作用する。
以下のオブジェクトをワークスペースに入れる

Script
Popup = script.Parent.Popup
Ready = true
function onTouch(hit)
local h = hit.Parent:FindFirstChild("Humanoid")
if h ~= nil and Ready == true then
Ready = true
local plyr = game.Players:FindFirstChild(h.Parent.Name)
local c = Popup:clone()
c.Parent = plyr.PlayerGui
wait(3)
c:remove()
wait(.1)
Ready = true
end
end
script.Parent.Touched:connect(onTouch)