I do not know why, but whenever I try to run char:Clone() it gives me an error like it doesnt clone I do not know why can someone debug it for me? Heres the local script: ```local Btn = game.Workspace:WaitForChild("Button"):WaitForChild("MeshBtn")
local SoundEffect = game:GetService("SoundService"):WaitForChild("Audio/Roblox_Pinball_Giant_Button_Press_05")
local AdvancePathFindingScript = game.ReplicatedStorage:WaitForChild("AdvancedPathFinding")
local Animate = game.ReplicatedStorage:WaitForChild("Animate")
local debounce = false
local RemoteEvent = game.ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("NpcClone")
Btn.Touched:Connect(function(hit)
if debounce then
return
end
debounce = true
Btn.Color = Color3.fromRGB(0, 255, 0)
if RemoteEvent then
RemoteEvent:FireServer()
else
warn("RemoteEvent 'NpcClone' not found!")
end
SoundEffect:Play()
task.wait(1)
debounce = false
Btn.Color = Color3.fromRGB(255, 0, 4)
end)