Npc spawner bugs

Im making a system that lets you spawn custom npcs, but whenever I spawn one, the physics are extremely buggy

LocalScript

script.Parent.MouseButton1Up:Connect(function()
	local uid = script.Parent.Parent.TextBox.Text
	game.ReplicatedStorage.RemoteEvent:FireServer(uid)
end)

ServerScript

local dummy = game.ServerStorage.Dummy
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(Player, uid)
	local char  = Player.Character
	local newHumanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(uid)
	local clone = dummy:Clone()
	clone.Parent = workspace
	clone.Humanoid:ApplyDescription(newHumanoidDescription)
	clone.HumanoidRootPart.Position = char:WaitForChild("HumanoidRootPart").Position
	end)

Maybe set it to spawn near to player will do the trick

also, add a cooldown

Still the same issue

ignore this

the physics randomly became normal again

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