Plugin runs during a playtest?

Basically when I play my game whenever I press play, my auto anchor plugin that I made is still working.

And when a players character is loaded, it anchors it.

How do I make a plugin not work while I am testing?

you need to update your plugin there might be a mistake you made if not, send a bug report to roblox.

well its not a bug.

What I really need is a way to tell when the player is playtesting that way it stops working, as you can see this code:

game.DescendantAdded:Connect(function(OBJ)
	if OBJ:IsA('BasePart') then
		OBJ.Anchored = true
		OBJ.Material = Enum.Material.SmoothPlastic
	end
end)

it checks when any thing is added. Even when it starts testing. I dont think this is a bug but IDK tbh

I’m having the same issue as well, even when putting the following at the top of the script:

if not plugin then
    return
end

Most likely a bug, I will create a report.

1 Like

Tell me if you find a solution

Try running checks using RunService:IsRunning() or RunService:IsEdit() depending on your use cases. Plugins run even when you are testing and it’s intended behavior.