I'm trying to make a trash can script, and to not accidentally delete your items, the trash can will ask for confirmation via GUI. The GUI is placed in the StarterGUI. It works perfectly in Studio, but not Online. Can someone tell me why or try to fix the current script?
I've tried Scripts and LocalScripts! Nothing is working.
function onTouch()
game.Players.LocalPlayer.PlayerGui.DeleteInv.Frame.Visible = true
end
script.Parent.Touched:connect(onTouch)

1 comment
You have a beautiful answer below