Output telling me that a mesh is not a valid member in workspace when it obviously is

I have a mesh in workspace called “Gem1” and im trying to get it to load a simple task but its being weird `local Button = game.Workspace.Gem1

local Click = Button.ProximityPrompt
local Gui = script.Parent 

Click.Triggered:Connect(function(player)
	Gui.Visible = not Gui.Visible
	
	Button:Destroy()
	wait(3)
	Gui.Visible = not Gui.Visible
	
	
end)

litterally whats goin on??

1 Like

use waitforchild ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

1 Like

oh so thats what that does
mb mb

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.