local humanoid = script.Parent.Humanoid
local Folder = game.Workspace.MoveTest
local fjdks = true
local model = game.ReplicatedStorage.Rig
model.Parent = game.Workspace
if fjdks then
while true do
model.CFrame = Folder:FindFirstChild("1")
for i, v in pairs(Folder:GetChildren()) do
humanoid:MoveTo(Folder:FindFirstChild(i).Position)
humanoid.MoveToFinished:Wait()
end
end
end
So I am trying to put model (which is in ReplicatedStorage) into Workspace but it seems to not be working. Does anyone know how to fix this?
Yes scripts don’t work in replicated storage, but since your script is putting the model straight into the workspace, why don’t you just move the model into the workspace in the first place? Then the rest of the code should work fine.