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

Why when I use the MoveTo code on a model it dosen't move to the position?

When I use the move to code on a model it doesn't work and goes far away from the position.

	local Blaster = game.ServerStorage.Blaster:Clone()
	print(e)
	Blaster.Name = "BlasterClone"
	Blaster.Parent = game.Workspace
	
Blaster:MoveTo(script.Parent.Head.Position)

Why doesn't it work?

2 comments

0

I think its because of collision(not sure), you can try creating a function to move the model using CFrame

0

SetPrimaryPartCFrame() is better to use, you just need to assign a child of the Model that is a BasePart to PrimaryPart because the PrimaryPart property is set to nil by default

1 answer

:MoveTo() function makes a humanoid WALKS to the target

If you want to move objects to an object, then i suggest looking up "BodyPosition"

If you want to "TELEPORT" and object instead of "MOVING" it, then i suggest changing its CFRAME

3 comments

0

Models have the :MoveTo() function as well and it's clear he is doing the function on a Model not a Humanoid.

0

Well its called a blaster, its not clear in anyway that its a model, and its not like my suggestion to use BodyPosition is wrong so can you remove your dislike?

0

He specified its a model, im wrong oof, but my suggestion still stand regardless

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