Hello!, i have this script, it was working good months ago, I check it now and it stopped working, someone can help me with this?

local deb = false;

script.Parent.MouseButton1Click:connect(function()
	if not deb then
		deb = true;
		game.ReplicatedStorage.RemoteEvent:FireServer("Reset");
		wait(5);
		deb = false;
	end;
end);

Thank you very much

3 comments

0

Does it error? What's the code that's listening for this to fire?

0

Is the game filtering enabled and is the script a local script or server script?

0

Thank you all for the interest of helping me, it stopped working in studio test mode, but it still working in game.