How to make a GUI Pop Up After You Touch a Part On Roblox Studio

Опубликовано: 18 Октябрь 2024
на канале: StudioTutorialzYT
63,483
1.5k

Hello everyone! Thank you all SO MUCH for watching and for 341 SUBS! I love you all! Have a great day/night!

Baii! 💗

Script:

Popup = script.Parent.ScreenGui ----- Your ScreenGUI's name
Ready = true
function onTouch(hit)
local h = hit.Parent:FindFirstChild("Humanoid")
if h ~= nil and Ready == true then
Ready = false
local plyr = game.Players:FindFirstChild(h.Parent.Name)
local c = Popup:clone()
c.Parent = plyr.PlayerGui
wait(3) ------ How long you have to wait for the GUI to disappear
c:remove() -------- Delete this line if you want the GUI to stay and not disappear
wait(1)
Ready = true
end
end

script.Parent.Touched:connect(onTouch)
-------------------------------------------------------------------------------------------------------------------------------------

Intro Song Link:    • Lilianna Wilde - Grind Me Down (Jawst...  

#RobloxStudioTutorials