ブロックにタッチすることでGUIが表示される。
表示し続ける時間を変更できる。
GUIはボタンやテキストなど変更でき、文字などはプロパティから編集できる。
このオブジェクトをワークスペースに入れる
![](https://forthechildren.space/wp-content/uploads/2022/07/a-6.png)
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(10000) --表示し続ける時間(秒)を記入
c:remove()
wait(.1)
Ready = true
end
end
script.Parent.Touched:connect(onTouch)