AlignPosition Platform doesn't carry the player

My platforms that use AlignPosition to move from point A to point B don’t carry the player, I don’t know why this is happening
I really don’t want to use BodyPosition and other older stuff, I’m trying to achieve the same effect with AlignPosition

I’m using a local script under StarterCharacterScripts that copies platforms from ReplicatedStorage and moves them to Workspace, so no issues on that end.
изображение

Script is:

local folder = game.ReplicatedStorage.MovingPlatforms
local copy = folder:Clone()
copy.Parent = workspace
for _, movingplatformmodel in ipairs(copy:GetChildren()) do
	local part = movingplatformmodel:WaitForChild('Moving')
	local fromPosition = movingplatformmodel:WaitForChild('1').Position
	local endPosition = movingplatformmodel:WaitForChild('2').Position
	task.spawn(function()
		while true do
			part.AlignPosition.Position = fromPosition
			task.wait(5)
			part.AlignPosition.Position = endPosition
			task.wait(5)
		end
	end)
end

I saw a similar post on here with the same problem, but it didn’t get solved, so I’m really on the edge here

2 Likes

Make can collide = true(This will ensure that it will carry the player

1 Like
1 Like

You can try to use PrismaticConstraints instead. It’s what I used in my game and is way more easier to adjust the position you want the platform to move to.

1 Like

If you turn up the density of the platform, it should work. Basically what is happening is that your character is more dense than the platform, and therefore the platform can’t possibly move your character.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.