Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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?

0
I think its because of collision(not sure), you can try creating a function to move the model using CFrame Leamir 3138 — 4y
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 DeceptiveCaster 3761 — 4y

1 answer

Log in to vote
-5
Answered by 4 years ago
Edited 4 years ago

: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

0
Models have the :MoveTo() function as well and it's clear he is doing the function on a Model not a Humanoid. CeramicTile 847 — 4y
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? Azure_Kite 885 — 4y
0
He specified its a model, im wrong oof, but my suggestion still stand regardless Azure_Kite 885 — 4y
Ad

Answer this question