I want to make animated part that starts while loop and makes part move in X axis, and stops the part when its in position i want it to be, something like this
(code below is an example)
local blah = game.workspace.blah
blah.Touched:Connect(function()
while true do
blah.position = vector3.new(0,0,0) + 1 -- in x axis only
if blah.position == vector3.new(100,0,0) then
stop loop and dont let the part move
end
Sorry for my english

2 comments
welp, i think im not going to get anserwed
Try tweenservice or maybe use CFrame :) could work.