Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make moving part positioning work in-game?

I made a script to make a certain part move at a speed. The part is anchored and non-colliding. However, when i play the game, the part moves horizontally, but bumps really much up and down and when it encounters another part, it goes up so it doesn't touch that other part. I just want the part to keep going through the terrain and other parts... How do i make sure the collision-problem is gone in my script/game?

local Bottom = script.Parent
local StartPosition = Vector3.new(-0.425, -12.332, 991.53)
for i = 1,1000 do
	wait(.01)
	Bottom.Position = StartPosition + Vector3.new(0,0,i*-5)
end

1 comment

0

can.collide is set to false ?

1 answer

✓ Accepted answer

Rather than setting the Part's Position try setting its CFrame instead.

local Bottom = script.Parent
local StartPosition = Vector3.new(-0.425, -12.332, 991.53)
for i = 1,1000 do
	wait(.01)
	Bottom.CFrame = CFrame.new(StartPosition) + Vector3.new(0,0,i*-5)
end

This discussion is preserved as it was. New answers, comments, and votes are closed.