So i’m making an Obby where i want a platform to repeat the action of sliding between 2 positions. Initially i used TweenService until i realized players fell of the platform then i was introduced to Prismatic Constraints. I am also having trouble understanding Target Position so if someone could explain it would be helpful.
Script(Inside Part):
local slide = script.Parent.PrismaticConstraint
while true do
if slide == nil then return end
slide.TargetPosition = 95
wait(2)
slide.TargetPosition = 5
wait(2)
end
Explorer(Properties of Prismatic Constraint)
All help is appreciated thank you!
