I've tried for atleast 20 minutes now and I'm stuck.
Workspace.BG.Lolol.Touched:connect(function(hit) script.Parent.Visible = true wait(60) script.Parent.Visible = false end)
Workspace.BG.Lolol.Touched:connect(function(hit) script.Parent.Visible = true wait(60) script.Parent.Visible = false end)
Your current script has many problems, and, we need more information.
Assuming from what you have as of now, you have either a BillboardGUI or SurfaceGUI.
To start off, I suggest using a capital c because a lower case is deprecated
Workspace.BG.Lolol.Touched:Connect(function(hit) script.Parent.Visible = true wait(60) script.Parent.Visible = false end)
now, we don't know what script this is, so, let's say "add a local script" (Local scripts work best when dealing with GUI)
There is no point of having "hit" since your not going to use it. Now I can help improve your code, but can not help you solve your problem. This is because information was lacking.
You can add a debounce so spam doesn't happen:
local a = true Workspace.BG.Lolol.Touched:Connect(function(hit) -- hit is not needed, if this is a local script then do local plr = game.Players.LocalPlayer if a then a = false script.Parent.Visible = true wait(60) script.Parent.Visible = false a = true -- so now it will become visible again end end)
I can only help you to what I know and what should be done. I wish you luck on your goal.
You need to put a capital C in Connect. so it will be like this
Workspace.BG.Lolol.Touched:Connect(function(hit)
And ps: Just reminding you, if you want to affect one player only then put it in a local script.