ReplicatedStorage to Workspace

So I have this code currently:

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?

You cannot run a script under replicated storage from what I know. You need to place this script to somewhere else like serverscriptservice

2 Likes

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.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.