Hey devs! I’m trying to move and entire model to a specific part’s position and the MoveTo() thing is just completely not working I even tried changing it just to a certain Vector3 point like shown below but it still wont work if anyone can help that would be great thanks!
– Trieing to move model to specific part position
while wait(5) do
-- Ignore this for now
if script.Parent == game.Workspace then
local pos = Vector3.new(0, 0, 0)
for i, v in pairs(game.Workspace:GetChildren()) do
if v.Name == script.Parent:WaitForChild("Owner").Value.. "Taken" then
local pos = v.Position
end
end
script.Parent:MoveTo(game.Workspace:FindFirstChild(script.Parent:WaitForChild("Owner").Value.. "Taken").Position)
end
end
– Trieing to move model just to vector3
while wait(5) do
if script.Parent == game.Workspace then
local pos = Vector3.new(0, 0, 0)
for i, v in pairs(game.Workspace:GetChildren()) do
if v.Name == script.Parent:WaitForChild("Owner").Value.. "Taken" then
local pos = v.Position
end
end
script.Parent:MoveTo(Vector3.new(0, 0, 0))
end
end
Like I said none of these worked so any help is appreciated!
(Note the model is duplicated out of replicated storage and is than supposed to move itself somewhere after being duplicated)