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.