Moving part is not following script


Only X coordinate moving script

.

They are moving but… When touch with player, they suddenly move to up
I did Anchor and Cancollide(false) them… why they not follow script?


Strangely, another moving script working good.
It because script object is Model that is not Part?

1 Like

I think you may have made a mistake that why it is not working :sad:

:MoveTo() does not allow a part to block it. Since your blocking it, it goes up so it isn’t blocked. Don’t block it and your good to go!

hmm but I must make them to kill player when they touch them.
Is there other moving script for it?

Try using SetPrimaryPartCFrame

workspace.Model:SetPrimaryPartCFrame(workspace.Model:GetPrimaryPartCFrame() + Vector3.new(5,0,0))

This line would move the selected Model 5 studs on the X coordinate.

Edit, do make sure the model has a Primary Part, it can be manually set as it is a property of the Model. I recommend selecting a part in the middle of the model you’re moving.


This is final script


3gay

And thisis script object, Danbang model, but there’s not only normally part.
Object that is not part must be added for model’s appearance

It not working… I think It may be because the object that is not part does belong to the model.
And Even it cant print ‘shang’ when I touch it.
But Script line error in print tap is not appeared, too

What’s my fault?

*later answer sorry…

SetPrimaryPartCFrame will automatically grab the Model’s Primarypart, so change “licral” to the location of the Model you want to move.

Click Danbang and under properties you should see “PrimaryPart”
image

Click the empty space after it and then click the part that you want to be the Model’s PrimaryPart.

1 Like

Problom solved about 2 hours!!!
Sooooooooo thx…
I show the cute planes that you helped! They wont be able to be born if you were not here!!!

2 Likes