Simple ServerScript not running

I’m having problems with a ServerScript of mine not running, which I need for iFrames. For some reason, it works on everything but the player’s character. This is what the script looks like.

local check = script.Parent
check.Changed:Connect(function()
	if check.Value == true then
		wait((1/4))
		check.Value = false
	end
end)

For context, “check” is a boolean value in the folder I used to organize the specific iFrames. Any information on this issue would be nice, thanks.

Slightly confused on what you are trying to achieve with this code?

Can you give more details like the explorer? Also put some prints and send them here so we can help you more easily

Like what @00iJU4N said, we need details on where it is in the Explorer. If it is within the player, or the player’s character, or the player’s gui, or a few other places, it won’t run.

True.we need details about your codes,Where you have put it on,Any errors on output. like these.

Currently, the script is being run inside a boolean value contained in the character’s humanoid. I’ll put a print function at the start of the code to see if it is running.

Tested with a print function, and it seems the issue is with the parenting of the script.