Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"partOrCharcter must be in workspace". What does that mean? [closed]

Asked by 5 years ago
Edited 5 years ago

So I made a quest giver, and when you complete the quest the dialog that's supposed to appear doesn't and the output says partOrCharacter must be in the workspace. I am very confused by this

if plr.MainTask.Value == "QuestComplete" then

wait(1)

workspace:WaitForChild("NPC"):Destroy()

game.ReplicatedStorage.Folder.SubFolder2.NPC:Clone().Parent = workspace

end

I destroy and clone a the NPC that has a different dialog so that it makes a makes a new dialog appear, but when you walk up to it, the dialog disappears with this in the output:

16:39:55.108 - partOrCharacter must be in the Workspace

16:39:55.109 - Stack Begin

16:39:55.112 - Script 'CoreGui.RobloxGui.CoreScripts/MainBotChatScript2', Line 314 - upvalue chatFunc

16:39:55.112 - Script 'CoreGui.RobloxGui.CoreScripts/MainBotChatScript2', Line 515 - global doDialog

16:39:55.113 - Script 'CoreGui.RobloxGui.CoreScripts/MainBotChatScript2', Line 567 - global startDialog

16:39:55.113 - Script 'CoreGui.RobloxGui.CoreScripts/MainBotChatScript2', Line 717

16:39:55.113 - Stack End

0
Those are CoreScript problems. DeceptiveCaster 3761 — 5y
0
Nothing is wrong with your script. It's just the CoreScripts possibly bugging. DeceptiveCaster 3761 — 5y
0
oh okay Boi52893642864912 69 — 5y

Closed as off-topic by User#24403

This question has been closed by our community as being off-topic from ROBLOX Lua Scripting.

Why was this question closed?