Object not moving to workspace

hey guys just asking, why can the npc move to anywhere else in explorer, like for example it can move to startergui, serverstorage, serverscriptservice, but for some reason it just wont move to workspace no matter what

local detector = script.Parent

detector.Touched:Connect(function()
game.Workspace.NPC.Parent = game.Workspace
end)

local serverStorage = game:GetService("ServerStorage")

local part = script.Parent

part.Touched:Connect(function()
    local npc = serverStorage.NPC:Clone()
    npc.Parent = workspace
end)

This script is likely working, you’re just doing literally nothing. You’re setting the NPC’s Parent to workspace, but it’s already in workspace (game.Workspace.NPC.Parent = game.Workspace). Can you go more in-depth on the problem you’re having?

1 Like

my bad i realized that like a minute before your response i just wasnt thinking