Script doesn't change Constraint

I feel like the solution will be obvious, but I’m trying to create a moving platform that moves every second, but it doesn’t work.

Code

local MovingPlatform = coroutine.wrap(function()
	while true do
		wait(1)
		workspace.Support.PrismaticConstraint.TargetPosition = 0 
		wait(1)
		workspace.Support.PrismaticConstraint.TargetPosition = 30
	end
end)
MovingPlatform()

I have this in a coroutine since there’s other things in the script I need to do.

Nevermind, I immediately figure it out. The issue was that the Target Position was getting set to something beyond the limit. To fix this I simply changed it to -30 instead of 30.