So I have a function in my game to copy stuff from server storage and it works perfectly fine. Whenever it gets copied the maps and “working” helicopters get copied into their correct position but when the function has to copy a helicopter into a position it copies it into the workspace but it doesn’t copy it into the position it’s supposed to be in. Then my game will error with nothing appearing in the output. Here is my code.
Copy the Fake Rescue:
Insert(fakeresc,"FakeRescue",script.HeliPos.Value)
game.Workspace.FakeRescue:MakeJoints()
updatefakeRescue()
First function:
local function LoadAsset(id) local model = game:GetService("ServerStorage").Inserts[tostring(id)]:Clone() model.Name = "Model" return model end
Second Function:
function Insert(ID,name,pos)
local Model = LoadAsset(ID)
Model.Parent = game.Workspace
Model.Name = name
Model:MakeJoints()
if Model:FindFirstChildOfClass("Model") then
if Model:FindFirstChildOfClass("Model"):FindFirstChild("Engine") then
Model:FindFirstChildOfClass("Model"):FindFirstChild("Engine"):FindFirstChildOfClass("BodyPosition").D = 15000
end
if Model:FindFirstChildOfClass("Model"):FindFirstChild("Colors") then
if Model:FindFirstChildOfClass("Model"):FindFirstChild("Colors"):IsA("Script") then
Model:FindFirstChildOfClass("Model"):FindFirstChild("Colors").Disabled = true
end
end
end
if pos ~= nil then
Model:MoveTo(pos)
end
end
Please help me, I can’t figure this out and I have had this bug for a week now.
Issue is found: The fake rescue is a grouped inside of a group

That is probably why that is happening, BUT how can I fix it? How can I rescript it?
You’re saying it does copy it but wont move it right ?
Read my comment above you, That is my issue I think.
I am going to try to do model.children now for a quick test
Hello, how are you doing?
You’re doing MoveTo, which are for things which have Humanoid (i suppose, i’m not that good at scripting either).
What you can do is get the PrimaryPart of your Helicopter and do this:
Model:SetPrimaryPartCFrame(pos + (0, 10, 0)) -- This should teleport the model to your position, plus ten so it doesn't get stuck in the ground
Hope i’ve helped!
Models also have a move to function, which moves the primaryPart source: Model (roblox.com)
Thanks, i thought it was only for humanoids or something like that.
I tried this since the rescue was inside another group but it didn’t help
Ok, how can I make the script move the helicopter inside of another group move? I tried using the children thing but it didn’t work.
Do model.FakeRescue, that may work.
Ok I will see if I can do that
I think you can do something more simple
Put the FakeRescue in ServerStorage, then clone it, make the clone’s parent to workspace and put the moveto(pos). That may work
1 Like
I agree, you don’t need to load it with the assetId, just clone it from the ServerStorage
1 Like
I am trying something out first before I do that. But that seems like a better idea.
Would this work?
local FR = game.ServerStorage.FakeRescue:Clone()
FR.Parent = workspace
FR:moveto(script.Parent.HeliPos)
it technically should, just dont forget MakeJoints()
1 Like
Is HeliPos a value or a part?
If it’s a value you should put HeliPos.Value
if it’s a part it should be HeliPos.Position
Yeah I will, thanks a thousand and you too @TrashMakeRice