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

whats wrong with this script ?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

no error.. when I change the numbers the model is in the same place when I run game

local model = game.Workspace.ManaStone
model.PrimaryPart = model.Union
    model:MoveTo(Vector3.new(model.PrimaryPart.Position + Vector3.new(20, -6.6, 4)))
0
You are being too Vague. TheeDeathCaster 2368 — 9y

1 answer

Log in to vote
2
Answered by 9 years ago

Using Vector Addition inside a Vector3 doesn't work out too well, most of the time it just returns (0,0,0);

Rather just remove the constructor:

local model = game.Workspace.ManaStone
model.PrimaryPart = model.Union
model:MoveTo(model.PrimaryPart.Position + Vector3.new(20, -6.6, 4))

0
thank you :3 Layfonex 0 — 9y
Ad

Answer this question