The model is first placed in ReplicatedStorage and then it gets moved to Workspace.
So, I have this script that has to find that model whenever it gets put in workspace, but for some reason it can’t find the model even when it’s in the workspace.
while true do
workspace.CharleneAtDoor.AtDoorIdle.Enabled = false
workspace.CharleneAtDoor.LeaveDoor.Enabled = true
wait(5)
workspace.CharleneAtDoor:remove()
end
I apologize if this doesn’t make sense but I don’t know how to explain this
Are you moving the model within the same script? If so you can just assign the model to a variable like so:
local Charlene = game.ReplicatedStorage.CharleneAtDoor -- However you reference the model
Charlene.Parent = workspace -- Move to workspace
-- Rest of your code
Charlene.AtDoorIdle.Enabled = false -- This will still reference the same model even though we changed the parent
Charlene.LeaveDoor.Enabled = true